mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Correct provider authentication storage documentation (#49118)
Clarify in the `requires_openai_auth` field documentation and configuration schema that credentials use the backend selected by `cli_auth_credentials_store`, rather than always being stored in `auth.json`. Also clarify that `env_key` specifies the environment variable containing the API key. GitOrigin-RevId: e65753a72258e43b24c4e40b51ff26830c5b3756
This commit is contained in:
@@ -2714,7 +2714,7 @@
|
||||
},
|
||||
"requires_openai_auth": {
|
||||
"default": false,
|
||||
"description": "Does this provider require an OpenAI API Key or ChatGPT login token? If true, user is presented with login screen on first run, and login preference and token/key are stored in auth.json. If false (which is the default), login screen is skipped, and API key (if needed) comes from the \"env_key\" environment variable.",
|
||||
"description": "Does this provider require an OpenAI API key or ChatGPT login token? If true, the user is presented with a login screen on first run, and credentials are stored using the backend selected by `cli_auth_credentials_store`. If false (the default), the login screen is skipped, and the API key (if needed) comes from the environment variable specified by `env_key`.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"stream_idle_timeout_ms": {
|
||||
|
||||
@@ -180,10 +180,11 @@ pub struct ModelProviderInfo {
|
||||
/// Maximum time (in milliseconds) to wait for a websocket connection attempt before treating
|
||||
/// it as failed.
|
||||
pub websocket_connect_timeout_ms: Option<u64>,
|
||||
/// Does this provider require an OpenAI API Key or ChatGPT login token? If true,
|
||||
/// user is presented with login screen on first run, and login preference and token/key
|
||||
/// are stored in auth.json. If false (which is the default), login screen is skipped,
|
||||
/// and API key (if needed) comes from the "env_key" environment variable.
|
||||
/// Does this provider require an OpenAI API key or ChatGPT login token? If true,
|
||||
/// the user is presented with a login screen on first run, and credentials are
|
||||
/// stored using the backend selected by `cli_auth_credentials_store`.
|
||||
/// If false (the default), the login screen is skipped, and the API key
|
||||
/// (if needed) comes from the environment variable specified by `env_key`.
|
||||
#[serde(default)]
|
||||
pub requires_openai_auth: bool,
|
||||
/// Whether this provider supports the Responses API WebSocket transport.
|
||||
|
||||
Reference in New Issue
Block a user