feat: implement per-account inflight request limits and dynamic recommended concurrency calculation.
This commit is contained in:
1 parent
c7ffcd76e6
commit
6a6f380987
9 files changed
+323
-58
No files matched your search
@@ -478,10 +478,17 @@ data: {"type":"message_stop"}
|
||||
"in_use": 1,
|
||||
"total": 4,
|
||||
"available_accounts": ["a@example.com"],
|
||||
"in_use_accounts": ["b@example.com"]
|
||||
"in_use_accounts": ["b@example.com"],
|
||||
"max_inflight_per_account": 2,
|
||||
"recommended_concurrency": 8
|
||||
}
|
||||
```
|
||||
|
||||
字段说明:
|
||||
|
||||
- `max_inflight_per_account`:每个账号允许的并发 in-flight 请求上限(默认 `2`,可由环境变量覆盖)
|
||||
- `recommended_concurrency`:建议客户端并发值,按 `账号数量 × max_inflight_per_account` 动态计算
|
||||
|
||||
### `POST /admin/accounts/test`
|
||||
|
||||
请求字段:
|
||||
|
||||
Reference in new issue
Block a user