Create Chat Completion
To create a chat completion, use the following endpoint:POST /chat/completions
Request Body
An array of message objects that form the conversation
The maximum number of tokens to generate
Sampling temperature, a value between 0 and 2.
Whether to enable streaming responses
Tells the model not to repeat a word that has already been used multiple times
in the conversation.
Prevents the model from repeating a word, even if it’s only been used once
Up to 4 sequences where the API will stop generating further tokens. The
returned text will not contain the stop sequence.
Body
application/json