使用ConcurrentHashMap,粗略的对于每个密钥按每分钟进行限速

This commit is contained in:
Yanyutin753
2024-03-15 09:59:31 +08:00
parent ba71053712
commit d0f4462d3c
4 changed files with 1 additions and 1 deletions

View File

@@ -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.