chat
Create a chat completion
Changed onCreates a model response for the given chat conversation. Supports both streaming and non-streaming responses. The model can be specified using provider prefixes (e.g., openai/gpt-4o) or with dynamic routing for multi-tenant configurations.
post/api/v1/chat/completions
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/v1/chat/completions
- Auth: HTTP bearer
Request body
Response
Chat completion response (streaming returns SSE events)
Changes
- info
added the new
maxenum value to the request property///////// - info
added the new
xhighenum value to the request property/////////
- info
- info
added the new optional request property
- info