mirror of https://github.com/Mai-with-u/MaiBot.git
稍微完善一下空回复warn
parent
e8922672aa
commit
a68c68cbe9
|
|
@ -195,7 +195,7 @@ class LLMRequest:
|
||||||
|
|
||||||
if not content:
|
if not content:
|
||||||
if raise_when_empty:
|
if raise_when_empty:
|
||||||
logger.warning("生成的响应为空")
|
logger.warning(f"生成的响应为空, 请求类型: {self.request_type}")
|
||||||
raise RuntimeError("生成的响应为空")
|
raise RuntimeError("生成的响应为空")
|
||||||
content = "生成的响应为空,请检查模型配置或输入内容是否正确"
|
content = "生成的响应为空,请检查模型配置或输入内容是否正确"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue