Container
Container chat completions
Given a list of messages forming a conversation, the model generates a response.
POST
When streaming mode is used (i.e., stream
option is set to true
), the response is in MIME type text/event-stream
. Otherwise, the content type is application/json
.
You can view the schema of the streamed sequence of chunk objects in streaming mode here.
Body
application/json
Response
200
application/json
Successfully generated a chat response.
The response is of type object
.