Mistral AI · Schema

FimCompletionStreamResponse

Properties

Name Type Description
id string
object string
created integer
model string
choices array
View JSON Schema on GitHub

JSON Schema

mistral-fimcompletionstreamresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FimCompletionStreamResponse",
  "title": "FimCompletionStreamResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string",
      "enum": [
        "chat.completion.chunk"
      ]
    },
    "created": {
      "type": "integer"
    },
    "model": {
      "type": "string"
    },
    "choices": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer"
          },
          "delta": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string"
              },
              "content": {
                "type": "string"
              }
            }
          },
          "finish_reason": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  }
}