ChatGPT · Schema

TokenLogprob

AgentsAIChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIRealtime

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.
top_logprobs array List of the most likely tokens and their log probability.
View JSON Schema on GitHub

JSON Schema

chatgpt-chat-completions-token-logprob-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TokenLogprob",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "description": "The token."
    },
    "logprob": {
      "type": "number",
      "description": "The log probability of this token."
    },
    "bytes": {
      "type": "array",
      "description": "A list of integers representing the UTF-8 bytes\nrepresentation of the token.\n"
    },
    "top_logprobs": {
      "type": "array",
      "description": "List of the most likely tokens and their log probability.\n"
    }
  }
}