mirror of
https://github.com/YuWanTingbb/unofficial-gpt4.git
synced 2025-10-13 13:45:06 +00:00
使用ConcurrentHashMap,粗略的对于每个密钥按每分钟进行限速
This commit is contained in:
@@ -370,7 +370,7 @@ public class ChatController {
|
||||
try {
|
||||
jsonObject.getString("one_copilot_limit");
|
||||
} catch (JSONException e) {
|
||||
jsonObject.put("get_token_url", 30);
|
||||
jsonObject.put("one_copilot_limit", 30);
|
||||
log.info("config.json没有新增one_copilot_limit参数,现已增加!");
|
||||
exist = false;
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user