This commit is contained in:
Dr Alex Mitre 2026-05-12 16:29:24 -06:00 committed by GitHub
commit eb8db608db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,6 +32,18 @@ All durations are returned in nanoseconds.
Certain endpoints stream responses as JSON objects. Streaming can be disabled by providing `{"stream": false}` for these endpoints.
### Error responses
Error responses use HTTP status codes and, when returned as JSON, include an `error` field with a human-readable message:
```json
{
"error": "model 'llama3.2' not found"
}
```
Some endpoints may include additional fields, such as `signin_url` for authentication flows. Clients should use the HTTP status code together with the `error` message.
## Generate a completion
```