mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 02:17:46 +08:00
feat: configure auth channel mismatch formats
This commit is contained in:
@@ -120,6 +120,17 @@ pub(crate) async fn build_admin_system_export_providers_payload(
|
||||
internal_priority: Some(key.internal_priority),
|
||||
global_priority_by_format: key.global_priority_by_format.clone(),
|
||||
auth_type_by_format: key.auth_type_by_format.clone(),
|
||||
allow_auth_channel_mismatch_formats: key
|
||||
.allow_auth_channel_mismatch_formats
|
||||
.as_ref()
|
||||
.and_then(serde_json::Value::as_array)
|
||||
.map(|items| {
|
||||
items
|
||||
.iter()
|
||||
.filter_map(serde_json::Value::as_str)
|
||||
.map(ToOwned::to_owned)
|
||||
.collect::<Vec<_>>()
|
||||
}),
|
||||
rpm_limit: key.rpm_limit,
|
||||
allowed_models: key.allowed_models.as_ref().and_then(|value| {
|
||||
value.as_array().map(|items| {
|
||||
|
||||
Reference in New Issue
Block a user