Skip to content

RateLimitResetCredit

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class RateLimitResetCredit(CodexBaseModel):
    description: str | None = None
    """
    Backend-provided display description for this credit, or `null` when unavailable.
    """
    expires_at: int | None = None
    """
    Unix timestamp in seconds when the credit expires, or `null` if it does not expire.
    """
    granted_at: int
    """
    Unix timestamp in seconds when the credit was granted.
    """
    id: str
    """
    Opaque backend identifier for this reset credit.
    """
    reset_type: RateLimitResetType
    status: RateLimitResetCreditStatus
    title: str | None = None
    """
    Backend-provided display title for this credit, or `null` when unavailable.
    """

description class-attribute instance-attribute

description: str | None = None

Backend-provided display description for this credit, or null when unavailable.

expires_at class-attribute instance-attribute

expires_at: int | None = None

Unix timestamp in seconds when the credit expires, or null if it does not expire.

granted_at instance-attribute

granted_at: int

Unix timestamp in seconds when the credit was granted.

id instance-attribute

id: str

Opaque backend identifier for this reset credit.

title class-attribute instance-attribute

title: str | None = None

Backend-provided display title for this credit, or null when unavailable.

:fa-brands-github: Show source on GitHub