mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-13 04:29:50 +08:00
fix: preserve provider auth metadata
This commit is contained in:
@@ -405,7 +405,6 @@ pub(crate) fn admin_provider_pool_config_from_config_value(
|
||||
cost_limit_per_key_tokens: None,
|
||||
rate_limit_cooldown_seconds: 300,
|
||||
overload_cooldown_seconds: 30,
|
||||
health_policy_enabled: true,
|
||||
probing_enabled: false,
|
||||
probing_target_percent: None,
|
||||
probing_target_count: None,
|
||||
@@ -466,10 +465,6 @@ pub(crate) fn admin_provider_pool_config_from_config_value(
|
||||
.and_then(json_u64)
|
||||
.filter(|value| *value > 0)
|
||||
.unwrap_or(30),
|
||||
health_policy_enabled: pool_advanced
|
||||
.get("health_policy_enabled")
|
||||
.and_then(Value::as_bool)
|
||||
.unwrap_or(true),
|
||||
probing_enabled: pool_advanced
|
||||
.get("probing_enabled")
|
||||
.and_then(Value::as_bool)
|
||||
@@ -583,7 +578,6 @@ mod tests {
|
||||
"cost_limit_per_key_tokens": 12000,
|
||||
"rate_limit_cooldown_seconds": 420,
|
||||
"overload_cooldown_seconds": 45,
|
||||
"health_policy_enabled": false,
|
||||
"probing_enabled": true,
|
||||
"probing_target_percent": 25,
|
||||
"probing_target_count": 3,
|
||||
@@ -624,7 +618,6 @@ mod tests {
|
||||
assert_eq!(config.cost_limit_per_key_tokens, Some(12_000));
|
||||
assert_eq!(config.rate_limit_cooldown_seconds, 420);
|
||||
assert_eq!(config.overload_cooldown_seconds, 45);
|
||||
assert!(!config.health_policy_enabled);
|
||||
assert!(config.probing_enabled);
|
||||
assert_eq!(config.probing_target_percent, Some(25.0));
|
||||
assert_eq!(config.probing_target_count, Some(3));
|
||||
|
||||
Reference in New Issue
Block a user