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
@@ -87,6 +87,7 @@ pub struct UpdateCustomProviderRequest {
pub api_key: String,
pub models: Vec<String>,
pub supports_streaming: Option<bool>,
pub headers: Option<std::collections::HashMap<String, String>>,
}
#[derive(Deserialize, ToSchema)]
@@ -706,6 +707,7 @@ pub async fn create_custom_provider(
request.api_key,
request.models,
request.supports_streaming,
request.headers,
)
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;