فهرست منبع

fix document error for "/workflows/:task_id/stop" (#6209)

LinJi 9 ماه پیش
والد
کامیت
10dd0f3fa0

+ 3 - 3
web/app/components/develop/template/template_workflow.en.mdx

@@ -213,7 +213,7 @@ Workflow applications offers non-session support and is ideal for translation, a
 ---
 
 <Heading
-  url='/workflows/:task_id/stop'
+  url='/workflows/tasks/:task_id/stop'
   method='POST'
   title='Stop Generate'
   name='#stop-generatebacks'
@@ -231,9 +231,9 @@ Workflow applications offers non-session support and is ideal for translation, a
   </Col>
   <Col sticky>
   ### Request Example
-  <CodeGroup title="Request" tag="POST" label="/workflows/:task_id/stop" targetCode={`curl -X POST '${props.appDetail.api_base_url}/workflows/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{"user": "abc-123"}'`}>
+  <CodeGroup title="Request" tag="POST" label="/workflows/tasks/:task_id/stop" targetCode={`curl -X POST '${props.appDetail.api_base_url}/workflows/tasks/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{"user": "abc-123"}'`}>
     ```bash {{ title: 'cURL' }}
-    curl -X POST '${props.appDetail.api_base_url}/workflows/:task_id/stop' \
+    curl -X POST '${props.appDetail.api_base_url}/workflows/tasks/:task_id/stop' \
     -H 'Authorization: Bearer {api_key}' \
     -H 'Content-Type: application/json' \
     --data-raw '{

+ 3 - 3
web/app/components/develop/template/template_workflow.zh.mdx

@@ -209,7 +209,7 @@ Workflow 应用无会话支持,适合用于翻译/文章写作/总结 AI 等
 ---
 
 <Heading
-  url='/workflows/:task_id/stop'
+  url='/workflows/tasks/:task_id/stop'
   method='POST'
   title='停止响应'
   name='#stop-generatebacks'
@@ -227,9 +227,9 @@ Workflow 应用无会话支持,适合用于翻译/文章写作/总结 AI 等
   </Col>
   <Col sticky>
     ### Request Example
-    <CodeGroup title="Request" tag="POST" label="/workflows/:task_id/stop" targetCode={`curl -X POST '${props.appDetail.api_base_url}/workflows/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{"user": "abc-123"}'`}>
+    <CodeGroup title="Request" tag="POST" label="/workflows/tasks/:task_id/stop" targetCode={`curl -X POST '${props.appDetail.api_base_url}/workflows/tasks/:task_id/stop' \\\n-H 'Authorization: Bearer {api_key}' \\\n-H 'Content-Type: application/json' \\\n--data-raw '{"user": "abc-123"}'`}>
       ```bash {{ title: 'cURL' }}
-      curl -X POST '${props.appDetail.api_base_url}/workflows/:task_id/stop' \
+      curl -X POST '${props.appDetail.api_base_url}/workflows/tasks/:task_id/stop' \
       -H 'Authorization: Bearer {api_key}' \
       -H 'Content-Type: application/json' \
       --data-raw '{