ChatCompletionRequestUserMessageContentPart
One OfThe type of the content part.
Allowed values:text
The text content.
ChatCompletionResponseMessage
objectA chat completion message generated by the model.
The contents of the message.
The refusal message generated by the model.
The tool calls generated by the model, such as function calls.
Show Child Parameters
The role of the author of this message.
Allowed values:assistant
Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.
Show Child Parameters
If the audio output modality is requested, this object contains data
about the audio response from the model. Learn more.
Show Child Parameters
ChatCompletionRole
stringThe role of the author of a message
Allowed values:developersystemuserassistanttoolfunction
ChatCompletionStreamOptions
objectOptions for streaming response. Only set this when you set stream: true.
Default:null
If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
ChatCompletionStreamResponseDelta
objectA chat completion delta generated by streamed model responses.
The contents of the chunk message.
Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.
Show Child Parameters
Show Child Parameters
The role of the author of this message.
Allowed values:developersystemuserassistanttool
The refusal message generated by the model.