eval

Creates accept an optional id: an identical replay returns the resource; conflicting id or identifier returns 409. Lists are paginated.

patch/api/v1/eval/test-cases/{id}

Request

  • Base URL: https://app.lobehub.com
  • URL: https://app.lobehub.com/api/v1/eval/test-cases/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

inputstring
expectedstring
categorystring
choicesstring[]
caseIdstring
sortOrderinteger
evalMode'equals' | 'contains' | 'regex' | 'starts-with' | 'ends-with' | 'any-of' | 'numeric' | 'extract-match' | 'json-schema' | 'javascript' | 'python' | 'llm-rubric' | 'factuality' | 'answer-relevance' | 'similar' | 'levenshtein' | 'rubric' | 'external' nullable
evalConfigobject nullable

Response

Successful response

messagestring
successtrue required
timestampstring date-time required

Changes