mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-16 03:14:45 +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()
|
||||
|
||||
@@ -104,6 +104,9 @@ class GeneratePodcastRequest(BaseModel):
|
||||
|
||||
class GeneratePPTRequest(BaseModel):
|
||||
content: str = Field(..., description="The content of the ppt")
|
||||
locale: str = Field(
|
||||
"en-US", description="Language locale for the conversation (e.g., en-US, zh-CN)"
|
||||
)
|
||||
|
||||
|
||||
class GenerateProseRequest(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user