mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 09:57:47 +08:00
feat: add provider-key concurrent limit (#352)
* feat: add provider-key concurrent limit * Fix provider key concurrent limit checks --------- Co-authored-by: fawney19 <[email protected]>
This commit is contained in:
@@ -1424,7 +1424,7 @@ async fn gateway_handles_admin_key_rpm_locally_with_trusted_admin_principal() {
|
||||
)],
|
||||
vec![
|
||||
sample_key("key-openai", "provider-openai", "openai:chat", "sk-test")
|
||||
.with_rate_limit_fields(Some(60), None, None, None, None, None, None, None),
|
||||
.with_rate_limit_fields(Some(60), None, None, None, None, None, None, None, None),
|
||||
],
|
||||
));
|
||||
let now_unix_secs = SystemTime::now()
|
||||
@@ -1511,7 +1511,7 @@ async fn gateway_resets_admin_key_rpm_locally_with_trusted_admin_principal() {
|
||||
)],
|
||||
vec![
|
||||
sample_key("key-openai", "provider-openai", "openai:chat", "sk-test")
|
||||
.with_rate_limit_fields(Some(60), None, None, None, None, None, None, None),
|
||||
.with_rate_limit_fields(Some(60), None, None, None, None, None, None, None, None),
|
||||
],
|
||||
));
|
||||
let now_unix_secs = SystemTime::now()
|
||||
|
||||
Reference in New Issue
Block a user