更多的调试信息

pull/937/head
Bakadax 2025-05-04 22:27:47 +08:00
parent c6e7b1644a
commit 1ef0696add
1 changed files with 1 additions and 1 deletions

View File

@ -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)")