mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 20:14:36 +00:00
feat: 现在默认不自动根据估算的费用切换apikey
This commit is contained in:
@@ -86,7 +86,8 @@ class KeysManager:
|
||||
|
||||
self.fee[md5] += fee
|
||||
|
||||
if self.fee[md5] >= self.api_key_fee_threshold:
|
||||
if self.fee[md5] >= self.api_key_fee_threshold and \
|
||||
hasattr(config, 'auto_switch_api_key') and config.auto_switch_api_key:
|
||||
switch_result, key_name = self.auto_switch()
|
||||
|
||||
# 检查是否切换到新的
|
||||
|
||||
Reference in New Issue
Block a user