Desktop: - No Custom Headers field for custom OpenAI-compatible providers (#6681)

Signed-off-by: Lymah123 <fimihanodunola625@gmail.com>
Co-authored-by: Zane Staggs <zane@squareup.com>
This commit is contained in:
Lymah
2026-02-12 01:20:56 +01:00
committed by GitHub
parent 153872a47c
commit f96d38e382
7 changed files with 246 additions and 25 deletions
@@ -207,7 +207,11 @@ pub fn update_custom_provider(params: UpdateCustomProviderParams) -> Result<()>
api_key_env,
base_url: params.api_url,
models: model_infos,
headers: params.headers.or(existing_config.headers),
headers: match params.headers {
Some(h) if h.is_empty() => None,
Some(h) => Some(h),
None => existing_config.headers,
},
timeout_seconds: existing_config.timeout_seconds,
supports_streaming: params.supports_streaming,
requires_auth: params.requires_auth,