Structs§
- Copilot
Auth Config - Credential
Storage - Generic credential storage interface.
- Custom
ApiKey Storage - Custom API Key storage for provider-specific keys.
- OAuth
Callback Page - OpenAI
Chat GptAuth Handle - Runtime auth state shared by OpenAI provider instances.
- OpenAI
Chat GptSession - Stored OpenAI ChatGPT subscription session.
- OpenAI
Credential Overview - Open
RouterO Auth Config - Configuration for OpenRouter OAuth authentication.
- Open
Router Token - Stored OAuth token with metadata.
- Pkce
Challenge - PKCE challenge pair containing verifier and challenge strings.
Enums§
- Auth
Callback Outcome - Auth
Credentials Store Mode - Preferred storage backend for credentials.
- Auth
Status - OAuth authentication status.
- OAuth
Provider - OpenAI
Chat GptAuth Status - Generic auth status reused by slash auth/status output.
- OpenAI
Resolved Auth - OpenAI auth resolution chosen for the current runtime.
- OpenAI
Resolved Auth Source
Functions§
- clear_
custom_ api_ keys - Clear all custom API keys from secure storage.
- clear_
oauth_ token - clear_
oauth_ token_ with_ mode - Clear the stored OAuth token from all storage locations.
- clear_
openai_ chatgpt_ session - clear_
openai_ chatgpt_ session_ with_ mode - exchange_
code_ for_ token - Exchange an authorization code for an API key.
- exchange_
openai_ chatgpt_ code_ for_ tokens - Exchange an authorization code for OAuth tokens.
- generate_
pkce_ challenge - Generate a cryptographically secure PKCE challenge pair.
- get_
auth_ status - get_
auth_ status_ with_ mode - Get the current OAuth authentication status.
- get_
auth_ url - Generate the OAuth authorization URL.
- get_
openai_ chatgpt_ auth_ status - get_
openai_ chatgpt_ auth_ status_ with_ mode - get_
openai_ chatgpt_ auth_ url - Build the OpenAI ChatGPT OAuth authorization URL.
- load_
custom_ api_ keys - Load all custom API keys from secure storage.
- load_
oauth_ token - Load an OAuth token from storage using the default mode.
- load_
oauth_ token_ with_ mode - Load an OAuth token from storage with specified mode.
- load_
openai_ chatgpt_ session - load_
openai_ chatgpt_ session_ with_ mode - migrate_
custom_ api_ keys_ to_ keyring - Migrate plain-text API keys from config to secure storage.
- refresh_
openai_ chatgpt_ session_ with_ mode - resolve_
openai_ auth - Resolve the active OpenAI auth source for the current configuration.
- run_
auth_ code_ callback_ server - save_
oauth_ token - Save an OAuth token to encrypted storage using the default mode.
- save_
oauth_ token_ with_ mode - Save an OAuth token to encrypted storage with specified mode.
- save_
openai_ chatgpt_ session - save_
openai_ chatgpt_ session_ with_ mode - summarize_
openai_ credentials