{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ChatCompletionChoice",
  "type": "object",
  "properties": {
    "index": {
      "type": "integer",
      "description": "The index of the choice in the list of choices."
    },
    "message": {
      "type": "object",
      "description": "The chat completion message generated by the model."
    },
    "finish_reason": {
      "type": "string",
      "description": "The reason the model stopped generating tokens. stop means the model hit a natural stop point or provided stop sequence. length means the maximum token count was reached. tool_calls means the model called a tool. content_filter means content was omitted due to a flag from content filters."
    },
    "logprobs": {
      "type": "['object', 'null']",
      "description": "Log probability information for the choice."
    }
  }
}