Front-end style optimization.

This commit is contained in:
戒酒的李白
2025-08-26 19:41:16 +08:00
parent 3ca87c0502
commit 11e8c85be6
60 changed files with 3022 additions and 7579 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ class GeminiLLM(BaseLLM):
"model": self.default_model,
"messages": messages,
"temperature": kwargs.get("temperature", 0.7),
"max_tokens": kwargs.get("max_tokens", 8000),
"max_tokens": kwargs.get("max_tokens", 50000), # 增加到50000以支持20000字输出
"stream": False
}
+1 -1
View File
@@ -270,7 +270,7 @@ class HTMLGenerationNode(StateMutationNode):
{f'<h2>InsightEngine分析结果</h2><div class="section"><pre>{insight_report}</pre></div>' if insight_report else ''}
{f'<h2>论坛监控数据</h2><div class="section"><pre>{forum_logs[:2000]}{"..." if len(forum_logs) > 2000 else ""}</pre></div>' if forum_logs else ''}
{f'<h2>论坛监控数据</h2><div class="section"><pre>{forum_logs}</pre></div>' if forum_logs else ''}
<h2>综合结论</h2>
<div class="section">
+3 -3
View File
@@ -19,7 +19,7 @@ class Config:
gemini_model: str = "gemini-2.5-pro"
# 报告配置
max_content_length: int = 50000
max_content_length: int = 500000 # 增加到500000字符以支持30000字输入和20000字输出
output_dir: str = "final_reports"
template_dir: str = "ReportEngine/report_template"
@@ -53,7 +53,7 @@ class Config:
gemini_api_key=getattr(config_module, "GEMINI_API_KEY", None),
default_llm_provider=getattr(config_module, "DEFAULT_LLM_PROVIDER", "gemini"),
gemini_model=getattr(config_module, "GEMINI_MODEL", "gemini-2.5-pro"),
max_content_length=getattr(config_module, "MAX_CONTENT_LENGTH", 50000),
max_content_length=getattr(config_module, "MAX_CONTENT_LENGTH", 500000),
output_dir=getattr(config_module, "REPORT_OUTPUT_DIR", "final_reports"),
template_dir=getattr(config_module, "TEMPLATE_DIR", "ReportEngine/report_template"),
log_file=getattr(config_module, "REPORT_LOG_FILE", "logs/report.log"),
@@ -76,7 +76,7 @@ class Config:
gemini_api_key=config_dict.get("GEMINI_API_KEY"),
default_llm_provider=config_dict.get("DEFAULT_LLM_PROVIDER", "gemini"),
gemini_model=config_dict.get("GEMINI_MODEL", "gemini-2.5-pro"),
max_content_length=int(config_dict.get("MAX_CONTENT_LENGTH", "50000")),
max_content_length=int(config_dict.get("MAX_CONTENT_LENGTH", "500000")),
output_dir=config_dict.get("REPORT_OUTPUT_DIR", "final_reports"),
template_dir=config_dict.get("TEMPLATE_DIR", "ReportEngine/report_template"),
log_file=config_dict.get("REPORT_LOG_FILE", "logs/report.log"),