mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-26 23:34:47 +08:00
feat: enable ppt_composer.zh_CN.md with request.locale (#694)
* feat: enable ppt_composer.zh_CN.md with request.locale * fix: GeneratePPTRequest miss locale field --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
This commit is contained in:
@@ -751,7 +751,7 @@ async def generate_ppt(request: GeneratePPTRequest):
|
||||
report_content = request.content
|
||||
print(report_content)
|
||||
workflow = build_ppt_graph()
|
||||
final_state = workflow.invoke({"input": report_content})
|
||||
final_state = workflow.invoke({"input": report_content, "locale": request.locale})
|
||||
generated_file_path = final_state["generated_file_path"]
|
||||
with open(generated_file_path, "rb") as f:
|
||||
ppt_bytes = f.read()
|
||||
|
||||
Reference in New Issue
Block a user