> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.oai.oai_models.ChatCompletion

<h2 id="autogen.oai.oai_models.ChatCompletion" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">ChatCompletion</span>
</h2>

```python theme={null}
ChatCompletion(**data: Any)
```

!!! abstract "Usage Documentation"
[Models](/docs/api-reference/autogen/oai/concepts/models)

A base class for creating Pydantic models.<br />

<b>Parameters:</b>

| Name     | Description   |
| -------- | ------------- |
| `**data` | **Type:** Any |

### Class Attributes

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### choices

<br />

A list of chat completion choices.<br />Can be more than one if `n` is greater than 1.

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### config\_id

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### cost

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### created

<br />

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

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### id

<br />

A unique identifier for the chat completion.

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### message\_retrieval\_function

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### model

<br />

The model used for the chat completion.

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### model\_config

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### object

<br />

The object type, which is always `chat.completion`.

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### pass\_filter

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### service\_tier

<br />

The service tier used for processing the request.

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### system\_fingerprint

<br />

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

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### usage

<br />

Usage statistics for the completion request.
