From 69ce3b3d33cbff1ade7d609e48a85d29bff2bd14 Mon Sep 17 00:00:00 2001
From: cola <45722758+xiangpingjiang@users.noreply.github.com>
Date: Wed, 28 Feb 2024 15:13:38 +0800
Subject: [PATCH] fix props.appDetail.api_base_url /v1 repeat error (#2601)
---
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 | 8 ++++----
web/app/components/develop/template/template_chat.zh.mdx | 8 ++++----
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/web/app/components/develop/template/template.en.mdx b/web/app/components/develop/template/template.en.mdx
index 121cf78d18..f930cfe1c9 100644
--- a/web/app/components/develop/template/template.en.mdx
+++ b/web/app/components/develop/template/template.en.mdx
@@ -289,9 +289,9 @@ The text generation application offers non-session support and is ideal for tran
### Request Example
-
+
```bash {{ title: 'cURL' }}
- curl -X POST '${props.appDetail.api_base_url}/v1/completion-messages/:task_id/stop' \
+ curl -X POST '${props.appDetail.api_base_url}/completion-messages/:task_id/stop' \
-H 'Authorization: Bearer {api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
diff --git a/web/app/components/develop/template/template.zh.mdx b/web/app/components/develop/template/template.zh.mdx
index 5a86406225..8153906d0a 100644
--- a/web/app/components/develop/template/template.zh.mdx
+++ b/web/app/components/develop/template/template.zh.mdx
@@ -266,9 +266,9 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
- `result` (string) 固定返回 success
-
+
```bash {{ title: 'cURL' }}
- curl -X POST '${props.appDetail.api_base_url}/v1/completion-messages/:task_id/stop' \
+ curl -X POST '${props.appDetail.api_base_url}/completion-messages/:task_id/stop' \
-H 'Authorization: Bearer {api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
diff --git a/web/app/components/develop/template/template_chat.en.mdx b/web/app/components/develop/template/template_chat.en.mdx
index 33dd6049b3..e102108154 100644
--- a/web/app/components/develop/template/template_chat.en.mdx
+++ b/web/app/components/develop/template/template_chat.en.mdx
@@ -344,9 +344,9 @@ Chat applications support session persistence, allowing previous chat history to
### Request Example
-
+
```bash {{ title: 'cURL' }}
- curl -X POST '${props.appDetail.api_base_url}/v1/chat-messages/:task_id/stop' \
+ curl -X POST '${props.appDetail.api_base_url}/chat-messages/:task_id/stop' \
-H 'Authorization: Bearer {api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
@@ -1025,9 +1025,9 @@ Chat applications support session persistence, allowing previous chat history to
- (string) url of icon
-
+
```bash {{ title: 'cURL' }}
- curl -X GET '${props.appDetail.api_base_url}/v1/meta?user=abc-123' \
+ curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \
-H 'Authorization: Bearer {api_key}'
```
diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx
index a62d68abba..7bc3cd5337 100644
--- a/web/app/components/develop/template/template_chat.zh.mdx
+++ b/web/app/components/develop/template/template_chat.zh.mdx
@@ -360,9 +360,9 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
- `result` (string) 固定返回 success
-
+
```bash {{ title: 'cURL' }}
- curl -X POST '${props.appDetail.api_base_url}/v1/chat-messages/:task_id/stop' \
+ curl -X POST '${props.appDetail.api_base_url}/chat-messages/:task_id/stop' \
-H 'Authorization: Bearer {api_key}' \
-H 'Content-Type: application/json' \
--data-raw '{
@@ -1022,9 +1022,9 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
- (string) 图标URL
-
+
```bash {{ title: 'cURL' }}
- curl -X GET '${props.appDetail.api_base_url}/v1/meta?user=abc-123' \
+ curl -X GET '${props.appDetail.api_base_url}/meta?user=abc-123' \
-H 'Authorization: Bearer {api_key}'
```