From acf9174bef851542068733aac0b816444ef3abc8 Mon Sep 17 00:00:00 2001 From: WANG Lei Date: Wed, 7 Feb 2024 16:28:09 +0800 Subject: [PATCH] fix: studio/api doc (#2415) --- web/app/components/develop/template/template.en.mdx | 4 ++-- web/app/components/develop/template/template.zh.mdx | 4 ++-- web/app/components/develop/template/template_chat.en.mdx | 5 ++--- web/app/components/develop/template/template_chat.zh.mdx | 4 ++-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/web/app/components/develop/template/template.en.mdx b/web/app/components/develop/template/template.en.mdx index 1a9b9a1920..9bc994551b 100644 --- a/web/app/components/develop/template/template.en.mdx +++ b/web/app/components/develop/template/template.en.mdx @@ -289,7 +289,7 @@ The text generation application offers non-session support and is ideal for tran ### Request Example - + ```bash {{ title: 'cURL' }} curl -X POST 'https://cloud.dify.ai/v1/completion-messages/:task_id/stop' \ -H 'Authorization: Bearer {api_key}' \ @@ -531,4 +531,4 @@ The text generation application offers non-session support and is ideal for tran ``` - \ No newline at end of file + diff --git a/web/app/components/develop/template/template.zh.mdx b/web/app/components/develop/template/template.zh.mdx index f50f2bfeda..6e2ff881d1 100644 --- a/web/app/components/develop/template/template.zh.mdx +++ b/web/app/components/develop/template/template.zh.mdx @@ -266,7 +266,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' - `result` (string) 固定返回 success - + ```bash {{ title: 'cURL' }} curl -X POST 'https://cloud.dify.ai/v1/completion-messages/:task_id/stop' \ -H 'Authorization: Bearer {api_key}' \ @@ -427,7 +427,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' "max_length": 48, "default": "" } - } + }, { // ... } diff --git a/web/app/components/develop/template/template_chat.en.mdx b/web/app/components/develop/template/template_chat.en.mdx index f36dd7bd54..f3891621f0 100644 --- a/web/app/components/develop/template/template_chat.en.mdx +++ b/web/app/components/develop/template/template_chat.en.mdx @@ -167,7 +167,7 @@ Chat applications support session persistence, allowing previous chat history to - + ```bash {{ title: 'cURL' }} curl -X POST '${props.appDetail.api_base_url}/chat-messages' \ @@ -344,7 +344,7 @@ Chat applications support session persistence, allowing previous chat history to ### Request Example - + ```bash {{ title: 'cURL' }} curl -X POST 'https://cloud.dify.ai/v1/chat-messages/:task_id/stop' \ -H 'Authorization: Bearer {api_key}' \ @@ -1048,4 +1048,3 @@ Chat applications support session persistence, allowing previous chat history to - diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx index 11f5c18133..0f17006d3b 100644 --- a/web/app/components/develop/template/template_chat.zh.mdx +++ b/web/app/components/develop/template/template_chat.zh.mdx @@ -360,7 +360,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' - `result` (string) 固定返回 success - + ```bash {{ title: 'cURL' }} curl -X POST 'https://cloud.dify.ai/v1/chat-messages/:task_id/stop' \ -H 'Authorization: Bearer {api_key}' \ @@ -973,7 +973,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' "max_length": 48, "default": "" } - } + }, { // ... }