Chat
Chat
Chat
Completion Message
A message containing the model's (assistant) response in a chat conversation.
ShowShow
Must be "assistant" to identify this as the model's response
The content of the model's response.
Hide ParametersShow Parameters
A text content item
Hide ParametersShow Parameters
Text content
Discriminator type of the content item. Always "text"
Hide ParametersShow Parameters
The reason why we stopped. Options are: - "stop": The model reached a natural stopping point. - "tool_calls": The model finished generating and invoked a tool call. - "length": The model reached the maxinum number of tokens specified in the request.
Hide ParametersShow Parameters
The tool calls generated by the model, such as function calls.
Hide ParametersShow Parameters
The ID of the tool call.
The function that the model called.
Hide ParametersShow Parameters
The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
The name of the function to call.
Create Chat Completion Response
Response from a chat completion request.
ShowShow
The complete response message
The unique identifier of the chat completion request.
Hide ParametersShow Parameters
Create Chat Completion Response Stream Chunk
A chunk of a streamed chat completion response.
ShowShow
The event containing the new content
Hide ParametersShow Parameters
Content generated since last event. This can be one or more tokens, or a tool call.
Hide ParametersShow Parameters
Hide ParametersShow Parameters
Hide ParametersShow Parameters
The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
The name of the function to call.
The ID of the tool call.
Type of the event
Hide ParametersShow Parameters
Hide ParametersShow Parameters
The reason why we stopped. Options are: - "stop": The model reached a natural stopping point. - "tool_calls": The model finished generating and invoked a tool call. - "length": The model reached the maxinum number of tokens specified in the request.
Hide ParametersShow Parameters
The unique identifier of the chat completion request.
Message
A message from the user in a chat conversation.
ShowShow
A message containing the model's (assistant) response in a chat conversation.
Hide ParametersShow Parameters
Must be "assistant" to identify this as the model's response
The content of the model's response.
Hide ParametersShow Parameters
A text content item
Hide ParametersShow Parameters
Text content
Discriminator type of the content item. Always "text"
Hide ParametersShow Parameters
The reason why we stopped. Options are: - "stop": The model reached a natural stopping point. - "tool_calls": The model finished generating and invoked a tool call. - "length": The model reached the maxinum number of tokens specified in the request.
Hide ParametersShow Parameters
The tool calls generated by the model, such as function calls.
Hide ParametersShow Parameters
The ID of the tool call.
The function that the model called.
Hide ParametersShow Parameters
The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
The name of the function to call.
Message Image Content Item
A image content item
ShowShow
Contains either an image URL or a data URL for a base64 encoded image.
Hide ParametersShow Parameters
Either a URL of the image or the base64 encoded image data.
Discriminator type of the content item. Always "image"
Hide ParametersShow Parameters
Message Text Content Item
A text content item
ShowShow
Text content
Discriminator type of the content item. Always "text"
Hide ParametersShow Parameters
System Message
A system message providing instructions or context to the model.
ShowShow
The content of the system message.
Hide ParametersShow Parameters
Tool Response Message
A message representing the result of a tool invocation.
ShowShow
The content of the user message, which can include text and other media.
Hide ParametersShow Parameters
Unique identifier for the tool call this response is for
User Message
A message from the user in a chat conversation.
ShowShow
The content of the user message, which can include text and other media.
Hide ParametersShow Parameters
Must be "user" to identify this as a user message.