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:
Celia Chen
2026-09-29 01:01:34 +00:00
committed by copyberry
parent 2e6cc4ed8d
commit 6c49240565
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -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": {
+5 -4
View File
@@ -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.