Admin
commited on
Commit
·
777e7f7
1
Parent(s):
f6e244f
跟换ip
Browse files- app/main.py +1 -1
app/main.py
CHANGED
|
@@ -301,7 +301,7 @@ async def process_request(chat_request: ChatCompletionRequest, http_request: Req
|
|
| 301 |
switch_api_key()
|
| 302 |
continue
|
| 303 |
|
| 304 |
-
msg = "所有API
|
| 305 |
extra_log_all_fail = {'key': "ALL", 'request_type': request_type, 'model': chat_request.model, 'status_code': 500, 'error_message': msg}
|
| 306 |
log_msg = format_log_message('ERROR', msg, extra=extra_log_all_fail)
|
| 307 |
logger.error(log_msg)
|
|
|
|
| 301 |
switch_api_key()
|
| 302 |
continue
|
| 303 |
|
| 304 |
+
msg = "所有API密钥均失败,请稍后重试?"
|
| 305 |
extra_log_all_fail = {'key': "ALL", 'request_type': request_type, 'model': chat_request.model, 'status_code': 500, 'error_message': msg}
|
| 306 |
log_msg = format_log_message('ERROR', msg, extra=extra_log_all_fail)
|
| 307 |
logger.error(log_msg)
|