Completely refactor the LLM integration method to easily replace the LLM used by each module and optimize the retransmission mechanism.

This commit is contained in:
666ghj
2025-10-09 13:45:39 +08:00
parent ce74f00137
commit 154b29c0d7
73 changed files with 942 additions and 51758 deletions
+3 -4
View File
@@ -67,11 +67,10 @@ class ReportFormattingNode(BaseNode):
self.log_info("正在格式化最终报告")
# 调用LLM,传递更大的max_tokens以支持长文本报告
# 调用LLM生成Markdown格式
response = self.llm_client.invoke(
SYSTEM_PROMPT_REPORT_FORMATTING,
message,
max_tokens=30000 # 支持一万字的报告输出
SYSTEM_PROMPT_REPORT_FORMATTING,
message,
)
# 处理响应