Skip to content

ChatCompletion

autogen.oai.oai_models.chat_completion.ChatCompletion #

Bases: BaseModel

model_config class-attribute #

model_config = ConfigDict(extra='allow')

id instance-attribute #

id

A unique identifier for the chat completion.

choices instance-attribute #

choices

A list of chat completion choices.

Can be more than one if n is greater than 1.

created instance-attribute #

created

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

model instance-attribute #

model

The model used for the chat completion.

object instance-attribute #

object

The object type, which is always chat.completion.

service_tier class-attribute instance-attribute #

service_tier = None

The service tier used for processing the request.

system_fingerprint class-attribute instance-attribute #

system_fingerprint = None

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 class-attribute instance-attribute #

usage = None

Usage statistics for the completion request.