feat(workflow): add support for passing workspace ID

This commit is contained in:
mengyonghao
2026-01-05 10:51:57 +08:00
parent 55dac533d9
commit bf6ede64bd
2 changed files with 9 additions and 6 deletions

View File

@@ -597,7 +597,8 @@ async def draft_run(
async for event in workflow_service.run_stream(
app_id=app_id,
payload=payload,
config=config
config=config,
workspace_id=current_user.current_workspace_id
):
# 提取事件类型和数据
event_type = event.get("event", "message")
@@ -627,7 +628,7 @@ async def draft_run(
}
)
result = await workflow_service.run(app_id, payload,config)
result = await workflow_service.run(app_id, payload, config, current_user.current_workspace_id)
logger.debug(
"工作流试运行返回结果",