ChatCompletionMessage

ChatCompletionMessage(**data: Any)

!!! abstract “Usage Documentation” Models

A base class for creating Pydantic models.

Parameters:
NameDescription
**dataType: Any

Class Attributes

annotations


Annotations for the message, when applicable, as when using the web search tool.

audio


If the audio output modality is requested, this object contains data about the audio response from the model.
Learn more.

content


The contents of the message.

function_call


Deprecated and replaced by tool_calls.
The name and arguments of a function that should be called, as generated by the model.

model_config



refusal


The refusal message generated by the model.

role


The role of the author of this message.

tool_calls


The tool calls generated by the model, such as function calls.