mirror of
https://github.com/LukeHagar/log10py.git
synced 2025-12-06 04:20:12 +00:00
16 lines
8.1 KiB
Markdown
16 lines
8.1 KiB
Markdown
# CreateChatCompletionResponse
|
|
|
|
Represents a chat completion response returned by model, based on the provided input.
|
|
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description |
|
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
| `id` | *str* | :heavy_check_mark: | A unique identifier for the chat completion. |
|
|
| `choices` | List[[components.Choices](../../models/components/choices.md)] | :heavy_check_mark: | A list of chat completion choices. Can be more than one if `n` is greater than 1. |
|
|
| `created` | *int* | :heavy_check_mark: | The Unix timestamp (in seconds) of when the chat completion was created. |
|
|
| `model` | *str* | :heavy_check_mark: | The model used for the chat completion. |
|
|
| `object` | [components.Object](../../models/components/object.md) | :heavy_check_mark: | The object type, which is always `chat.completion`. |
|
|
| `system_fingerprint` | *Optional[str]* | :heavy_minus_sign: | This fingerprint represents the backend configuration that the model runs with.<br/><br/>Can be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.<br/> |
|
|
| `usage` | [Optional[components.CompletionUsage]](../../models/components/completionusage.md) | :heavy_minus_sign: | Usage statistics for the completion request. | |