Chat

Create Chat Completions

Changed on

Creates a model response for the given chat conversation.

post/v1/chat/completions

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Request body

messagesobject[] required

A list of messages comprising the conversation so far.

modelstring required

ID of the model to use. Call /v1/models endpoint to get the list of available models, only text-generation model type is supported.

streamboolean nullable

If set, partial message deltas will be sent. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message.

Response

Successful Response

OR

Changes