OpenAI · JSON Structure

Openai Chat Completions Chat Completion Choice Structure

Type: object Properties: 4
AIArtificial IntelligenceLarge Language ModelsT1

ChatCompletionChoice is a JSON Structure definition published by OpenAI, describing 4 properties. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

index message finish_reason logprobs

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "ChatCompletionChoice",
  "type": "object",
  "properties": {
    "index": {
      "type": "integer"
    },
    "message": {
      "type": "object"
    },
    "finish_reason": {
      "type": "string"
    },
    "logprobs": {
      "type": "['object', 'null']"
    }
  }
}