feat: 现在默认不自动根据估算的费用切换apikey

This commit is contained in:
Rock Chin
2023-01-02 21:03:02 +08:00
parent a4dc661cd4
commit 36c8a5846d
2 changed files with 6 additions and 1 deletions

View File

@@ -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()
# 检查是否切换到新的