mirror of https://github.com/Mai-with-u/MaiBot.git
更多的调试信息
parent
c6e7b1644a
commit
1ef0696add
|
|
@ -481,7 +481,7 @@ class LLMRequest:
|
|||
if response.status == 429 and is_key_list:
|
||||
logger.warning(f"模型 {self.model_name}: Key ...{current_key[-4:]} 遇到 429 错误。")
|
||||
response_text = await response.text()
|
||||
logger.debug(f"模型 {self.model_name}: Key ...{current_key[-4:]} response:\n{json.dumps(json.loads(response_text), indent=2, ensure_ascii=False)}")
|
||||
logger.debug(f"模型 {self.model_name}: Key ...{current_key[-4:]} response:\n{json.dumps(json.loads(response_text), indent=2, ensure_ascii=False)}\napi_url:\n{api_url}\nheader:\n{headers}\npayload:\n{actual_payload}")
|
||||
if current_key not in keys_failed_429:
|
||||
keys_failed_429.add(current_key)
|
||||
logger.info(f" (因 429 已失败 {len(keys_failed_429)}/{key_switch_limit_429} 个不同 Key)")
|
||||
|
|
|
|||
Loading…
Reference in New Issue