Feat: Added custom headers and toggle keyring CLI options (#5017)

Signed-off-by: Blair Allan <Blairallan@icloud.com>
Co-authored-by: dianed-square <73617011+dianed-square@users.noreply.github.com>
This commit is contained in:
Blair Allan
2025-12-01 21:01:03 +00:00
committed by GitHub
parent c3c71a2ff4
commit ccaf7ca56d
5 changed files with 129 additions and 3 deletions
@@ -92,6 +92,7 @@ pub fn create_custom_provider(
api_key: String,
models: Vec<String>,
supports_streaming: Option<bool>,
headers: Option<HashMap<String, String>>,
) -> Result<DeclarativeProviderConfig> {
let id = generate_id(&display_name);
let api_key_name = generate_api_key_name(&id);
@@ -117,7 +118,7 @@ pub fn create_custom_provider(
api_key_env: api_key_name,
base_url: api_url,
models: model_infos,
headers: None,
headers,
timeout_seconds: None,
supports_streaming,
};