AI
Create a chat completion
Changed onRuns one chat completion against the model the resolved site has configured, in the OpenAI-compatible request and response shape. Set "stream": true to receive the answer as server-sent events, each frame a chat.completion.chunk, closing with data: [DONE] — a stream that failed ends on an error frame and never carries that marker. The model field is required and must be one the site has configured; there is no implicit default. Every response reports the serving site in the X-dotCMS-Resolved-Site header.
post/api/inference/v1/chat/completions
Request
- Base URLhttps://docs.anzworldline-solutions.com.au
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
siteIdstring
Request body
Example request
{
"model": "gpt-4o"
}Response
The completion, or the event stream when stream was requested
Example response
{
"id": "chatcmpl-8f3a",
"object": "chat.completion",
"model": "gpt-4o"
}Changes
- info
endpoint added
- info