Create a chat completion
Deprecated: Use POST /v2/ai/openai/chat/completions instead. Chat with a language model. This endpoint is consistent with the OpenAI Chat Completions API and may be used with the OpenAI JS or Python SDK.
Request body
Example request
{
"messages": [
{
"role": "system",
"content": "You are a friendly chatbot."
},
{
"role": "user",
"content": "Hello, world!"
}
]
}Response
Successful Response
Changes
Changed in 3 of the 99 revisions of this API.147
- ○
the request property
became nullablerequest-property-became-nullable
- ○
the
request property default value8192was addedrequest-property-default-value-added
- ○
- ▲
the
request property type changed fromobjectto no typerequest-property-type-changed
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the request property
/request-property-removed
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added to the
request propertyoneOflistrequest-property-one-of-added
This revision also has 34 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
new-optional-request-property
- ○
Of the 99 revisions, 1 has no diff computed.