Bifrost · Schema
ChatCompletionResponse
Response from a chat completion request.
AI GatewayLLMLoad BalancingOpen SourceOpenAI CompatibleMCP
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique identifier for the completion. |
| object | string | Object type, always chat.completion. |
| created | integer | Unix timestamp of when the completion was created. |
| model | string | Provider and model used for the completion. |
| choices | array | Array of completion choices. |
| usage | object |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ChatCompletionResponse",
"type": "object",
"description": "Response from a chat completion request.",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the completion.",
"example": "chatcmpl-abc123"
},
"object": {
"type": "string",
"description": "Object type, always chat.completion.",
"example": "chat.completion"
},
"created": {
"type": "integer",
"description": "Unix timestamp of when the completion was created.",
"example": 1713000000
},
"model": {
"type": "string",
"description": "Provider and model used for the completion.",
"example": "openai/gpt-4o"
},
"choices": {
"type": "array",
"description": "Array of completion choices.",
"items": {
"$ref": "#/components/schemas/ChatChoice"
}
},
"usage": {
"$ref": "#/components/schemas/UsageStats"
}
}
}