ChatCompletionMessage

ChatCompletionMessage(**data: Any)

Usage docs: https://docs.pydantic.dev/2.10/concepts/models/

A base class for creating Pydantic models.

Parameters:
NameDescription
**dataType: Any

Class Attributes

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.