Skip to content

ChatCompletionChunk

Base classes

Name Children Inherits
Schema
schemez.schema
Base class for configuration models.

⋔ Inheritance diagram

graph TD
  3026914208["models.ChatCompletionChunk"]
  330168112["schema.Schema"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  330168112 --> 3026914208
  3879467795 --> 330168112
  2751680898 --> 3879467795

🛈 DocStrings

Bases: Schema

Chunk of a streaming chat completion.

Source code in src/llmling_models/openai_server/models.py
class ChatCompletionChunk(Schema):
    """Chunk of a streaming chat completion."""

    id: str
    object: str = "chat.completion.chunk"
    created: int
    model: str
    choices: list[dict[str, Any]]

:fa-brands-github: Show source on GitHub