feat: add strategic_investment report style (#595)

* add strategic_investment mode

* make format

* make lint

* fix: repair
lint-frontend
This commit is contained in:
HagonChan
2025-09-24 09:50:36 +08:00
committed by GitHub
parent 1c27e0f2ae
commit c214999606
13 changed files with 135 additions and 22 deletions

View File

@@ -275,7 +275,6 @@ async def _stream_graph_events(
)
async def _astream_workflow_generator(
messages: List[dict],
thread_id: str,
@@ -519,6 +518,7 @@ async def enhance_prompt(request: EnhancePromptRequest):
"POPULAR_SCIENCE": ReportStyle.POPULAR_SCIENCE,
"NEWS": ReportStyle.NEWS,
"SOCIAL_MEDIA": ReportStyle.SOCIAL_MEDIA,
"STRATEGIC_INVESTMENT": ReportStyle.STRATEGIC_INVESTMENT,
}
report_style = style_mapping.get(
request.report_style.upper(), ReportStyle.ACADEMIC