Skip to content

Choice

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: Schema

Choice in a completion response.

Source code in src/llmling_models/openai_server/models.py
class Choice(Schema):
    """Choice in a completion response."""

    index: int = 0
    message: OpenAIMessage
    finish_reason: str = "stop"

:fa-brands-github: Show source on GitHub