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:
@@ -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)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user