Baseten · Schema

ChatCompletionLogProbsContent

Log probability information for a token in the content.

AIMLInferenceDeploymentMLOpsOpenAI CompatibleAnthropic CompatibleTruss

Properties

Name Type Description
token string The token string.
logprob number The log probability of the token.
bytes array The UTF-8 byte representation of the token.
top_logprobs array List of the most likely tokens and their log probabilities at this position.
View JSON Schema on GitHub

JSON Schema

baseten-chatcompletionlogprobscontent-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatCompletionLogProbsContent",
  "title": "ChatCompletionLogProbsContent",
  "additionalProperties": false,
  "properties": {
    "token": {
      "title": "Token",
      "type": "string",
      "description": "The token string."
    },
    "logprob": {
      "default": -9999,
      "title": "Logprob",
      "type": "number",
      "description": "The log probability of the token."
    },
    "bytes": {
      "default": null,
      "title": "Bytes",
      "description": "The UTF-8 byte representation of the token.",
      "items": {
        "type": "integer"
      },
      "type": "array"
    },
    "top_logprobs": {
      "default": null,
      "title": "Top Logprobs",
      "description": "List of the most likely tokens and their log probabilities at this position.",
      "items": {
        "$ref": "#/components/schemas/ChatCompletionLogProb"
      },
      "type": "array"
    }
  },
  "required": [
    "token"
  ],
  "type": "object",
  "description": "Log probability information for a token in the content."
}