Skip to content

GatewayOAuthLoginParams

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Authorize a configured provider without changing the default or any thread's provider.

Source code in src/codexed/models/v2_protocol.py
class GatewayOAuthLoginParams(CodexBaseModel):
    """Authorize a configured provider without changing the default or any thread's provider."""

    device_auth: bool | None = None
    """
    Select device authorization when the server advertises support for it.
    """
    model_provider: str | None = None
    """
    Defaults to the current provider when omitted.
    """

device_auth class-attribute instance-attribute

device_auth: bool | None = None

Select device authorization when the server advertises support for it.

model_provider class-attribute instance-attribute

model_provider: str | None = None

Defaults to the current provider when omitted.

:fa-brands-github: Show source on GitHub