ChatCompletion

ChatCompletion(**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

choices


A list of chat completion choices.
Can be more than one if n is greater than 1.

created


The Unix timestamp (in seconds) of when the chat completion was created.

id


A unique identifier for the chat completion.

model


The model used for the chat completion.

model_config



object


The object type, which is always chat.completion.

service_tier


The service tier used for processing the request.

system_fingerprint


This fingerprint represents the backend configuration that the model runs with.
Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.

usage


Usage statistics for the completion request.