latestOpenAPI 3.1.02026-08-236994571.1 MB

79928a3d37d3

OpenAI Evals API

Update Eval

Update an evaluation.

Model-based routing (for multi-account support):

  • Pass model via header: x-litellm-model: gpt-4-account-1
  • Pass model via query: ?model=gpt-4-account-1
  • Pass model via body: {"model": "gpt-4-account-1"}

Example usage:

curl -X POST "http://localhost:4000/v1/evals/eval_123"       -H "Authorization: Bearer your-key"       -H "Content-Type: application/json"       -d '{"name": "Updated Name"}'

Returns: Updated Eval object

post/v1/evals/{eval_id}

Path parameters

eval_idstring required

Query parameters

custom_llm_providerstring nullable

Response

Successful Response

idstring required
objectstring
created_atinteger required
updated_atinteger nullable
namestring nullable
data_source_configobject required
testing_criteriaobject[] required
metadataobject nullable