Hugging Face · Schema

CompletionStreamResponse

Properties

Name Type Description
id string
object string
created integer
model string
choices array
View JSON Schema on GitHub

JSON Schema

hugging-face-completionstreamresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CompletionStreamResponse",
  "title": "CompletionStreamResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "abc123"
    },
    "object": {
      "type": "string",
      "const": "text_completion",
      "example": "example_value"
    },
    "created": {
      "type": "integer",
      "example": 10
    },
    "model": {
      "type": "string",
      "example": "example_value"
    },
    "choices": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "index": {
            "type": "integer"
          },
          "finish_reason": {
            "type": "string"
          }
        }
      },
      "example": []
    }
  }
}