System bug fixes, prompt optimization, and dynamic context adjustment.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user