Chat Completions Streaming

POST
Generate chat completions based on a conversation history with streaming support.

Request

This endpoint expects an object.
model
stringRequired
The chat model to use for generating completions.
messages
list of objectsRequired
An array of messages used for generating completions.
max_tokens
integerOptional
The maximum number of tokens in the generated completion.
temperature
doubleOptional
The temperature parameter for controlling randomness in completions.
top_p
doubleOptional
The diversity of the generated text based on nucleus sampling.
top_k
integerOptional
The diversity of the generated text based on top-k sampling.
stream
booleanOptional
Turn streaming on.
input
objectOptional
Options to affect the input of the request.

Response

This endpoint returns a list of objects
data
objectOptional

Errors