正确使用lpmm构建prompt

This commit is contained in:
UnCLAS-Prommer
2025-08-03 19:52:31 +08:00
parent 9a63a8030e
commit 1e5db5d7e1
12 changed files with 141 additions and 249 deletions

View File

@@ -181,7 +181,8 @@ class LLMRequest:
endpoint="/chat/completions",
)
if not content:
raise RuntimeError("获取LLM生成内容失败")
logger.warning("生成的响应为空")
content = "生成的响应为空,请检查模型配置或输入内容是否正确"
return content, (reasoning_content, model_info.name, tool_calls)