Create a chat completion.
Changed onSet stream: true to receive Server-Sent Events instead of a single JSON response. The optional X-Conversation-Id request header reuses a server-side session across turns when --conversations-max is non-zero.
post/v1/chat/completions
Request
- Base URLhttp://127.0.0.1:8083
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Conversation-Idstring
Stable identifier used to look up a cached session.
Request body
Response
OK. Either a JSON ChatCompletion or a text/event-stream of chat.completion.chunk events.
Changes
- info
added the new optional request property
- info
- info
added the non-success response with the status
- info