model-hub

PUT /model-hub/eval-templates/<id>/update/

Update an eval template. Only user-owned templates can be updated.

put/model-hub/eval-templates/{template_id}/update/

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/model-hub/eval-templates/{template_id}/update/
  • Auth: one of:
    • API key in header X-Api-Key
    • API key in header X-Secret-Key

Request body

namestring nullable
eval_type'llm' | 'code' | 'agent' nullable
instructionsstring nullable
modelstring nullable
output_type'pass_fail' | 'percentage' | 'deterministic' nullable
pass_thresholdnumber nullable
choice_scoresobject nullable
multi_choiceboolean nullable
descriptionstring nullable
tagsstring[] nullable
check_internetboolean nullable
codestring nullable
code_language'python' | 'javascript' nullable
messagesobject[] nullable
few_shot_examplesobject[] nullable
mode'auto' | 'agent' | 'quick' nullable
toolsobject nullable
knowledge_basesstring[] nullable
data_injectionobject nullable
summaryobject nullable
error_localizer_enabledboolean nullable
publishboolean nullable
template_format'mustache' | 'jinja' nullable

Response

OK

statusboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.