System bug fixes, prompt optimization, and dynamic context adjustment.

This commit is contained in:
戒酒的李白
2025-08-27 13:44:56 +08:00
parent e5e32ff6dc
commit 822bad557f
35 changed files with 20212 additions and 129 deletions
+6 -2
View File
@@ -67,8 +67,12 @@ class ReportFormattingNode(BaseNode):
self.log_info("正在格式化最终报告")
# 调用LLM
response = self.llm_client.invoke(SYSTEM_PROMPT_REPORT_FORMATTING, message)
# 调用LLM,传递更大的max_tokens以支持长文本报告
response = self.llm_client.invoke(
SYSTEM_PROMPT_REPORT_FORMATTING,
message,
max_tokens=8192 # 支持一万字的报告输出
)
# 处理响应
processed_response = self.process_output(response)