chat_completion
ChatCompletion
properties
__fields_set__
model_extra
Get extra fields set during validation.
Returns:
A dictionary of extra fields, or None
if config.extra
is not set to "allow"
.
model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
Returns:
A set of strings representing the fields that have been set, i.e. that were not filled from defaults.
methods
full_repr
Return the full un-pruned representation, regardless of the mode currently set.
dunder_methods
__init__
Create ChatCompletion instance.
Arguments:
assistant_message
- The assistant message, optional.
Returns:
The pydantic ChatCompletion instance.