Skip to content

ChatgptDeviceCodev2LoginAccountResponse

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class ChatgptDeviceCodev2LoginAccountResponse(CodexBaseModel):
    login_id: str
    type: Literal["chatgptDeviceCode"] = "chatgptDeviceCode"
    user_code: str
    """
    One-time code the user must enter after signing in.
    """
    verification_url: str
    """
    URL the client should open in a browser to complete device code authorization.
    """

user_code instance-attribute

user_code: str

One-time code the user must enter after signing in.

verification_url instance-attribute

verification_url: str

URL the client should open in a browser to complete device code authorization.

:fa-brands-github: Show source on GitHub