Skip to content

Commit cc07b0c

Browse files
committed
fix: update app api
1 parent 069bbff commit cc07b0c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/frontend/platform/src/components/bs-comp/apiComponent/ApiAccessFlow.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ url = "${location.origin}/api/v2/workflow/invoke"
5252
5353
payload = json.dumps({
5454
"workflow_id": "${id}",
55-
"stream": False, # 是否请求流式返回工作流事件,默认为 True。本示例为了直观展示返回结果,所以改为
56-
False 使用非流式请求,真实业务场景中为了用户体验建议请求流式返回。
55+
"stream": False, # 是否请求流式返回工作流事件,默认为 True。本示例为了直观展示返回结果,所以改为False 使用非流式请求,真实业务场景中为了用户体验建议请求流式返回。
5756
})
5857
5958
headers = {
@@ -177,7 +176,7 @@ print(response.text)# 输出工作流的响应`
177176
"workflow_id": "7481368b-dd1c-43ef-a254-dce219ee53e8",
178177
"stream": False, # 启用流式传输
179178
"input": {"input_2775b": { # 事件里的节点ID
180-
"user_input": "贵州茅台股价情况" # 使用从文件中读取的文本
179+
"user_input": "贵州茅台股价情况" # 用户输入内容
181180
}},
182181
"message_id": "387216",
183182
"session_id": "1fc60fe0edb44219bbef5f8870dd4639_async_task_id"

0 commit comments

Comments
 (0)