稍微完善一下空回复warn

pull/1201/head
UnCLAS-Prommer 2025-08-21 00:48:24 +08:00
parent e8922672aa
commit a68c68cbe9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ class LLMRequest:
if not content:
if raise_when_empty:
logger.warning("生成的响应为空")
logger.warning(f"生成的响应为空, 请求类型: {self.request_type}")
raise RuntimeError("生成的响应为空")
content = "生成的响应为空,请检查模型配置或输入内容是否正确"