Skip to content

RateLimitSnapshot

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  2596131264["v2_protocol.RateLimitSnapshot"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 2596131264
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class RateLimitSnapshot(CodexBaseModel):
    credits: CreditsSnapshot | None = None
    individual_limit: SpendControlLimitSnapshot | None = None
    limit_id: str | None = None
    limit_name: str | None = None
    normal_model_slug: str | None = None
    """
    Normal model whose display name and reasoning options describe this quota alias.
    """
    plan_type: PlanType | None = None
    primary: RateLimitWindow | None = None
    rate_limit_reached_type: RateLimitReachedType | None = None
    secondary: RateLimitWindow | None = None
    spend_control_reached: bool | None = None
    """
    Backend-reported spend-control state. `None` is unavailable, not a sparse-update recovery.
    """

normal_model_slug class-attribute instance-attribute

normal_model_slug: str | None = None

Normal model whose display name and reasoning options describe this quota alias.

spend_control_reached class-attribute instance-attribute

spend_control_reached: bool | None = None

Backend-reported spend-control state. None is unavailable, not a sparse-update recovery.

:fa-brands-github: Show source on GitHub