Mistral AI · Schema

ChatCompletionResponse

Properties

Name Type Description
id string Unique identifier for the completion
object string
created integer Unix timestamp of when the completion was created
model string The model used for the completion
choices array
usage object
View JSON Schema on GitHub

JSON Schema

mistral-chatcompletionresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatCompletionResponse",
  "title": "ChatCompletionResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the completion"
    },
    "object": {
      "type": "string",
      "enum": [
        "chat.completion"
      ]
    },
    "created": {
      "type": "integer",
      "description": "Unix timestamp of when the completion was created"
    },
    "model": {
      "type": "string",
      "description": "The model used for the completion"
    },
    "choices": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Choice"
      }
    },
    "usage": {
      "$ref": "#/components/schemas/Usage"
    }
  }
}