Pinecone · Schema

ChoiceModel

Describes a single choice in a chat completion response.

Vector DatabasesAIEmbeddingsRAG

Properties

Name Type Description
finish_reason string
index integer
message object
View JSON Schema on GitHub

JSON Schema

pinecone-choicemodel-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChoiceModel",
  "title": "ChoiceModel",
  "description": "Describes a single choice in a chat completion response.",
  "type": "object",
  "properties": {
    "finish_reason": {
      "x-enum": [
        "stop",
        "length",
        "content_filter",
        "function_call"
      ],
      "type": "string"
    },
    "index": {
      "type": "integer"
    },
    "message": {
      "$ref": "#/components/schemas/MessageModel"
    }
  }
}