Microsoft Azure · Schema

chatCompletionTokenLogprob

API ManagementCloudCloud ComputingEnterpriseInfrastructure as a ServicePlatform as a ServiceT1

Properties

Name Type Description
token string The token.
logprob number The log probability of this token.
bytes array A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to
top_logprobs array List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.
View JSON Schema on GitHub

JSON Schema

microsoft-azure-chatcompletiontokenlogprob-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/chatCompletionTokenLogprob",
  "title": "chatCompletionTokenLogprob",
  "type": "object",
  "properties": {
    "token": {
      "description": "The token.",
      "type": "string"
    },
    "logprob": {
      "description": "The log probability of this token.",
      "type": "number"
    },
    "bytes": {
      "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
      "type": "array",
      "items": {
        "type": "integer"
      },
      "nullable": true
    },
    "top_logprobs": {
      "description": "List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "token": {
            "description": "The token.",
            "type": "string"
          },
          "logprob": {
            "description": "The log probability of this token.",
            "type": "number"
          },
          "bytes": {
            "description": "A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token.",
            "type": "array",
            "items": {
              "type": "integer"
            },
            "nullable": true
          }
        },
        "required": [
          "token",
          "logprob",
          "bytes"
        ]
      }
    }
  },
  "required": [
    "token",
    "logprob",
    "bytes",
    "top_logprobs"
  ]
}