GET
/v1/schemas/huggingface/chat/v1%2Fchat%2Fcompletions?kind=output
Accept:
Response body
6 properties · 6 required · 10 $defs| property | type | description | constraints |
|---|---|---|---|
| choices* | ChatCompletionOutputComplete[] | ||
| created* | integer | n ≥ 0 · format: int64 | |
| id* | string | ||
| model* | string | ||
| system_fingerprint* | string | ||
| usage* | ChatCompletionOutputUsage |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"huggingface","endpointId":"v1/chat/completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}