Spaces:
Running
Running
Upload 4 files
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ class APIKeyManager:
|
|
54 |
if current_key not in api_key_blacklist:
|
55 |
return current_key
|
56 |
|
57 |
-
logger.error("所有API key
|
58 |
return None
|
59 |
|
60 |
def show_all_keys(self):
|
@@ -79,7 +79,7 @@ def switch_api_key():
|
|
79 |
current_api_key = key
|
80 |
logger.info(f"API key 替换为 → {current_api_key[:11]}...")
|
81 |
else:
|
82 |
-
logger.error("API key 替换失败,所有API key
|
83 |
|
84 |
logger.info(f"当前 API key: {current_api_key[:11]}...")
|
85 |
|
|
|
54 |
if current_key not in api_key_blacklist:
|
55 |
return current_key
|
56 |
|
57 |
+
logger.error("所有API key都已耗尽或暂时在黑名单中,请重新配置或稍后重试")
|
58 |
return None
|
59 |
|
60 |
def show_all_keys(self):
|
|
|
79 |
current_api_key = key
|
80 |
logger.info(f"API key 替换为 → {current_api_key[:11]}...")
|
81 |
else:
|
82 |
+
logger.error("API key 替换失败,所有API key都已耗尽或暂时在黑名单中,请重新配置或稍后重试")
|
83 |
|
84 |
logger.info(f"当前 API key: {current_api_key[:11]}...")
|
85 |
|