GET
/v1/schemas/ollama/chat/api%2Fchat
Accept:
Request body
10 properties · 2 required · 5 $defs| property | type | description | constraints |
|---|---|---|---|
| model* | string | Model name | |
| messages* | ChatMessage[] | Chat history as an array of message objects (each with a role and content) | |
| tools | ToolDefinition[] | Optional list of function tools the model may call during the chat | |
| format | enum | object | Format to return a response in. Can be `json` or a JSON schema | |
| options | ModelOptions | Runtime options that control text generation | |
| stream | boolean | default: true | |
| think | boolean | string | Controls a model's thinking output. Use `/api/show` to discover the supported values and default for the selected model. `true` requests thinking, `false` requests no thinking output, and `null` uses the model default. String values are model-defined; supporte… | nullable |
| keep_alive | string | number | Model keep-alive duration (for example `5m` or `0` to unload immediately) | |
| logprobs | boolean | Whether to return log probabilities of the output tokens | |
| top_logprobs | integer | Number of most likely tokens to return at each token position when logprobs are enabled |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"ollama","endpointId":"api/chat","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}