Pinecone · Schema

ChoiceChunkModel

Describes a single choice in a chat completion response.

Vector DatabasesAIEmbeddingsRAG

Properties

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

JSON Schema

pinecone-choicechunkmodel-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChoiceChunkModel",
  "title": "ChoiceChunkModel",
  "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"
    },
    "delta": {
      "description": "Chat completion message",
      "type": "object",
      "properties": {
        "role": {
          "type": "string"
        },
        "content": {
          "type": "string"
        }
      }
    }
  }
}