diff --git a/web/app/components/develop/template/template.en.mdx b/web/app/components/develop/template/template.en.mdx
index c923ea30db..f469076bf3 100755
--- a/web/app/components/develop/template/template.en.mdx
+++ b/web/app/components/develop/template/template.en.mdx
@@ -379,10 +379,107 @@ The text generation application offers non-session support and is ideal for tran
---
+
+
+
+ Text to speech.
+
+ ### Request Body
+
+
+
+ For text messages generated by Dify, simply pass the generated message-id directly. The backend will use the message-id to look up the corresponding content and synthesize the voice information directly. If both message_id and text are provided simultaneously, the message_id is given priority.
+
+
+ Speech generated content。
+
+
+ The user identifier, defined by the developer, must ensure uniqueness within the app.
+
+
+
+
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -o text-to-audio.mp3 -X POST '${props.appDetail.api_base_url}/text-to-audio' \
+ --header 'Authorization: Bearer {api_key}' \
+ --header 'Content-Type: application/json' \
+ --data-raw '{
+ "message_id": "5ad4cb98-f0c7-4085-b384-88c403be6290",
+ "text": "Hello Dify",
+ "user": "abc-123"
+ }'
+ ```
+
+
+
+
+ ```json {{ title: 'headers' }}
+ {
+ "Content-Type": "audio/wav"
+ }
+ ```
+
+
+
+---
+
+
+
+
+ Used to get basic information about this application
+ ### Query
+
+
+
+ User identifier, defined by the developer's rules, must be unique within the application.
+
+
+ ### Response
+ - `name` (string) application name
+ - `description` (string) application description
+ - `tags` (array[string]) application tags
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
+
+---
+
@@ -497,56 +594,3 @@ The text generation application offers non-session support and is ideal for tran
-
----
-
-
-
-
- Text to speech.
-
- ### Request Body
-
-
-
- For text messages generated by Dify, simply pass the generated message-id directly. The backend will use the message-id to look up the corresponding content and synthesize the voice information directly. If both message_id and text are provided simultaneously, the message_id is given priority.
-
-
- Speech generated content。
-
-
- The user identifier, defined by the developer, must ensure uniqueness within the app.
-
-
-
-
-
-
-
- ```bash {{ title: 'cURL' }}
- curl -o text-to-audio.mp3 -X POST '${props.appDetail.api_base_url}/text-to-audio' \
- --header 'Authorization: Bearer {api_key}' \
- --header 'Content-Type: application/json' \
- --data-raw '{
- "message_id": "5ad4cb98-f0c7-4085-b384-88c403be6290",
- "text": "Hello Dify",
- "user": "abc-123"
- }'
- ```
-
-
-
-
- ```json {{ title: 'headers' }}
- {
- "Content-Type": "audio/wav"
- }
- ```
-
-
-
diff --git a/web/app/components/develop/template/template.ja.mdx b/web/app/components/develop/template/template.ja.mdx
index a6ab109229..bd92bd7f36 100755
--- a/web/app/components/develop/template/template.ja.mdx
+++ b/web/app/components/develop/template/template.ja.mdx
@@ -375,13 +375,109 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
+---
+
+
+
+
+ テキストを音声に変換します。
+
+ ### リクエストボディ
+
+
+
+ Difyが生成したテキストメッセージの場合、生成されたmessage-idを直接渡すだけです。バックエンドはmessage-idを使用して対応するコンテンツを検索し、音声情報を直接合成します。message_idとtextの両方が同時に提供された場合、message_idが優先されます。
+
+
+ 音声生成コンテンツ。
+
+
+ 開発者が定義したユーザー識別子。アプリ内で一意性を確保する必要があります。
+
+
+
+
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -o text-to-audio.mp3 -X POST '${props.appDetail.api_base_url}/text-to-audio' \
+ --header 'Authorization: Bearer {api_key}' \
+ --header 'Content-Type: application/json' \
+ --data-raw '{
+ "message_id": "5ad4cb98-f0c7-4085-b384-88c403be6290",
+ "text": "Hello Dify",
+ "user": "abc-123"
+ }'
+ ```
+
+
+
+
+ ```json {{ title: 'headers' }}
+ {
+ "Content-Type": "audio/wav"
+ }
+ ```
+
+
+
+---
+
+
+
+
+ このアプリケーションの基本情報を取得するために使用されます
+ ### Query
+
+
+
+ ユーザー識別子、開発者のルールによって定義され、アプリケーション内で一意でなければなりません。
+
+
+ ### Response
+ - `name` (string) アプリケーションの名前
+ - `description` (string) アプリケーションの説明
+ - `tags` (array[string]) アプリケーションのタグ
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
---
@@ -496,56 +592,3 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
-
----
-
-
-
-
- テキストを音声に変換します。
-
- ### リクエストボディ
-
-
-
- Difyが生成したテキストメッセージの場合、生成されたmessage-idを直接渡すだけです。バックエンドはmessage-idを使用して対応するコンテンツを検索し、音声情報を直接合成します。message_idとtextの両方が同時に提供された場合、message_idが優先されます。
-
-
- 音声生成コンテンツ。
-
-
- 開発者が定義したユーザー識別子。アプリ内で一意性を確保する必要があります。
-
-
-
-
-
-
-
- ```bash {{ title: 'cURL' }}
- curl -o text-to-audio.mp3 -X POST '${props.appDetail.api_base_url}/text-to-audio' \
- --header 'Authorization: Bearer {api_key}' \
- --header 'Content-Type: application/json' \
- --data-raw '{
- "message_id": "5ad4cb98-f0c7-4085-b384-88c403be6290",
- "text": "Hello Dify",
- "user": "abc-123"
- }'
- ```
-
-
-
-
- ```json {{ title: 'headers' }}
- {
- "Content-Type": "audio/wav"
- }
- ```
-
-
-
diff --git a/web/app/components/develop/template/template.zh.mdx b/web/app/components/develop/template/template.zh.mdx
index d193b91816..7b1bec3546 100755
--- a/web/app/components/develop/template/template.zh.mdx
+++ b/web/app/components/develop/template/template.zh.mdx
@@ -353,10 +353,108 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
---
+
+
+
+ 文字转语音。
+
+ ### Request Body
+
+
+
+ Dify 生成的文本消息,那么直接传递生成的message-id 即可,后台会通过 message_id 查找相应的内容直接合成语音信息。如果同时传 message_id 和 text,优先使用 message_id。
+
+
+ 语音生成内容。如果没有传 message-id的话,则会使用这个字段的内容
+
+
+ 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
+
+
+
+
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -o text-to-audio.mp3 -X POST '${props.appDetail.api_base_url}/text-to-audio' \
+ --header 'Authorization: Bearer {api_key}' \
+ --header 'Content-Type: application/json' \
+ --data-raw '{
+ "message_id": "5ad4cb98-f0c7-4085-b384-88c403be6290",
+ "text": "你好Dify",
+ "user": "abc-123",
+ "streaming": false
+ }'
+ ```
+
+
+
+
+ ```json {{ title: 'headers' }}
+ {
+ "Content-Type": "audio/wav"
+ }
+ ```
+
+
+
+---
+
+
+
+
+ 用于获取应用的基本信息
+ ### Query
+
+
+
+ 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
+
+
+ ### Response
+ - `name` (string) 应用名称
+ - `description` (string) 应用描述
+ - `tags` (array[string]) 应用标签
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
+
+---
+
@@ -461,57 +559,3 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
-
----
-
-
-
-
- 文字转语音。
-
- ### Request Body
-
-
-
- Dify 生成的文本消息,那么直接传递生成的message-id 即可,后台会通过 message_id 查找相应的内容直接合成语音信息。如果同时传 message_id 和 text,优先使用 message_id。
-
-
- 语音生成内容。如果没有传 message-id的话,则会使用这个字段的内容
-
-
- 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
-
-
-
-
-
-
-
- ```bash {{ title: 'cURL' }}
- curl -o text-to-audio.mp3 -X POST '${props.appDetail.api_base_url}/text-to-audio' \
- --header 'Authorization: Bearer {api_key}' \
- --header 'Content-Type: application/json' \
- --data-raw '{
- "message_id": "5ad4cb98-f0c7-4085-b384-88c403be6290",
- "text": "你好Dify",
- "user": "abc-123",
- "streaming": false
- }'
- ```
-
-
-
-
- ```json {{ title: 'headers' }}
- {
- "Content-Type": "audio/wav"
- }
- ```
-
-
-
diff --git a/web/app/components/develop/template/template_advanced_chat.en.mdx b/web/app/components/develop/template/template_advanced_chat.en.mdx
index 48df5b0298..1d12a045ea 100644
--- a/web/app/components/develop/template/template_advanced_chat.en.mdx
+++ b/web/app/components/develop/template/template_advanced_chat.en.mdx
@@ -936,13 +936,57 @@ Chat applications support session persistence, allowing previous chat history to
+---
+
+
+
+
+ Used to get basic information about this application
+ ### Query
+
+
+
+ User identifier, defined by the developer's rules, must be unique within the application.
+
+
+ ### Response
+ - `name` (string) application name
+ - `description` (string) application description
+ - `tags` (array[string]) application tags
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
---
@@ -1096,14 +1140,14 @@ Chat applications support session persistence, allowing previous chat history to
```json {{ title: 'Response' }}
{
- "tool_icons": {
+ "tool_icons": {
"dalle2": "https://cloud.dify.ai/console/api/workspaces/current/tool-provider/builtin/dalle/icon",
"api_tool": {
- "background": "#252525",
- "content": "\ud83d\ude01"
+ "background": "#252525",
+ "content": "\ud83d\ude01"
}
+ }
}
- }
```
diff --git a/web/app/components/develop/template/template_advanced_chat.ja.mdx b/web/app/components/develop/template/template_advanced_chat.ja.mdx
index c1dd25ca1b..2fc17d1ca9 100644
--- a/web/app/components/develop/template/template_advanced_chat.ja.mdx
+++ b/web/app/components/develop/template/template_advanced_chat.ja.mdx
@@ -935,13 +935,57 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
+---
+
+
+
+
+ このアプリケーションの基本情報を取得するために使用されます
+ ### Query
+
+
+
+ ユーザー識別子、開発者のルールによって定義され、アプリケーション内で一意でなければなりません。
+
+
+ ### Response
+ - `name` (string) アプリケーションの名前
+ - `description` (string) アプリケーションの説明
+ - `tags` (array[string]) アプリケーションのタグ
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
---
@@ -1061,7 +1105,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
@@ -1095,14 +1139,14 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
```json {{ title: '応答' }}
{
- "tool_icons": {
+ "tool_icons": {
"dalle2": "https://cloud.dify.ai/console/api/workspaces/current/tool-provider/builtin/dalle/icon",
"api_tool": {
- "background": "#252525",
- "content": "\ud83d\ude01"
+ "background": "#252525",
+ "content": "\ud83d\ude01"
}
+ }
}
- }
```
diff --git a/web/app/components/develop/template/template_advanced_chat.zh.mdx b/web/app/components/develop/template/template_advanced_chat.zh.mdx
index f20d081dd3..734e52ae58 100755
--- a/web/app/components/develop/template/template_advanced_chat.zh.mdx
+++ b/web/app/components/develop/template/template_advanced_chat.zh.mdx
@@ -969,13 +969,57 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
+---
+
+
+
+
+ 用于获取应用的基本信息
+ ### Query
+
+
+
+ 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
+
+
+ ### Response
+ - `name` (string) 应用名称
+ - `description` (string) 应用描述
+ - `tags` (array[string]) 应用标签
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
---
diff --git a/web/app/components/develop/template/template_chat.en.mdx b/web/app/components/develop/template/template_chat.en.mdx
index 0632f2dab1..4e873b3294 100644
--- a/web/app/components/develop/template/template_chat.en.mdx
+++ b/web/app/components/develop/template/template_chat.en.mdx
@@ -965,13 +965,57 @@ Chat applications support session persistence, allowing previous chat history to
+---
+
+
+
+
+ Used to get basic information about this application
+ ### Query
+
+
+
+ User identifier, defined by the developer's rules, must be unique within the application.
+
+
+ ### Response
+ - `name` (string) application name
+ - `description` (string) application description
+ - `tags` (array[string]) application tags
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
---
@@ -1125,14 +1169,14 @@ Chat applications support session persistence, allowing previous chat history to
```json {{ title: 'Response' }}
{
- "tool_icons": {
+ "tool_icons": {
"dalle2": "https://cloud.dify.ai/console/api/workspaces/current/tool-provider/builtin/dalle/icon",
"api_tool": {
- "background": "#252525",
- "content": "\ud83d\ude01"
+ "background": "#252525",
+ "content": "\ud83d\ude01"
}
+ }
}
- }
```
diff --git a/web/app/components/develop/template/template_chat.ja.mdx b/web/app/components/develop/template/template_chat.ja.mdx
index 94dd2adba5..b8914a4749 100644
--- a/web/app/components/develop/template/template_chat.ja.mdx
+++ b/web/app/components/develop/template/template_chat.ja.mdx
@@ -963,13 +963,57 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
+---
+
+
+
+
+ このアプリケーションの基本情報を取得するために使用されます
+ ### Query
+
+
+
+ ユーザー識別子、開発者のルールによって定義され、アプリケーション内で一意でなければなりません。
+
+
+ ### Response
+ - `name` (string) アプリケーションの名前
+ - `description` (string) アプリケーションの説明
+ - `tags` (array[string]) アプリケーションのタグ
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
---
@@ -1089,7 +1133,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
@@ -1123,14 +1167,14 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
```json {{ title: '応答' }}
{
- "tool_icons": {
+ "tool_icons": {
"dalle2": "https://cloud.dify.ai/console/api/workspaces/current/tool-provider/builtin/dalle/icon",
"api_tool": {
- "background": "#252525",
- "content": "\ud83d\ude01"
+ "background": "#252525",
+ "content": "\ud83d\ude01"
}
+ }
}
- }
```
diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx
index bfa86b7f0d..70242623b7 100644
--- a/web/app/components/develop/template/template_chat.zh.mdx
+++ b/web/app/components/develop/template/template_chat.zh.mdx
@@ -978,13 +978,57 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
+---
+
+
+
+
+ 用于获取应用的基本信息
+ ### Query
+
+
+
+ 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
+
+
+ ### Response
+ - `name` (string) 应用名称
+ - `description` (string) 应用描述
+ - `tags` (array[string]) 应用标签
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
---
diff --git a/web/app/components/develop/template/template_workflow.en.mdx b/web/app/components/develop/template/template_workflow.en.mdx
index 60317f3d78..97519611aa 100644
--- a/web/app/components/develop/template/template_workflow.en.mdx
+++ b/web/app/components/develop/template/template_workflow.en.mdx
@@ -498,104 +498,6 @@ Workflow applications offers non-session support and is ideal for translation, a
---
-
-
-
- Used at the start of entering the page to obtain information such as features, input parameter names, types, and default values.
-
- ### Query
-
-
-
- User identifier, defined by the developer's rules, must be unique within the application.
-
-
-
- ### Response
- - `user_input_form` (array[object]) User input form configuration
- - `text-input` (object) Text input control
- - `label` (string) Variable display label name
- - `variable` (string) Variable ID
- - `required` (bool) Whether it is required
- - `default` (string) Default value
- - `paragraph` (object) Paragraph text input control
- - `label` (string) Variable display label name
- - `variable` (string) Variable ID
- - `required` (bool) Whether it is required
- - `default` (string) Default value
- - `select` (object) Dropdown control
- - `label` (string) Variable display label name
- - `variable` (string) Variable ID
- - `required` (bool) Whether it is required
- - `default` (string) Default value
- - `options` (array[string]) Option values
- - `file_upload` (object) File upload configuration
- - `image` (object) Image settings
- Currently only supports image types: `png`, `jpg`, `jpeg`, `webp`, `gif`
- - `enabled` (bool) Whether it is enabled
- - `number_limits` (int) Image number limit, default is 3
- - `transfer_methods` (array[string]) List of transfer methods, remote_url, local_file, must choose one
- - `system_parameters` (object) System parameters
- - `file_size_limit` (int) Document upload size limit (MB)
- - `image_file_size_limit` (int) Image file upload size limit (MB)
- - `audio_file_size_limit` (int) Audio file upload size limit (MB)
- - `video_file_size_limit` (int) Video file upload size limit (MB)
-
-
-
-
-
-
- ```bash {{ title: 'cURL' }}
- curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
- --header 'Authorization: Bearer {api_key}'
- ```
-
-
-
-
- ```json {{ title: 'Response' }}
- {
- "user_input_form": [
- {
- "paragraph": {
- "label": "Query",
- "variable": "query",
- "required": true,
- "default": ""
- }
- }
- ],
- "file_upload": {
- "image": {
- "enabled": false,
- "number_limits": 3,
- "detail": "high",
- "transfer_methods": [
- "remote_url",
- "local_file"
- ]
- }
- },
- "system_parameters": {
- "file_size_limit": 15,
- "image_file_size_limit": 10,
- "audio_file_size_limit": 50,
- "video_file_size_limit": 100
- }
- }
- ```
-
-
-
-
----
-
+---
+
+
+
+
+ Used to get basic information about this application
+ ### Query
+
+
+
+ User identifier, defined by the developer's rules, must be unique within the application.
+
+
+ ### Response
+ - `name` (string) application name
+ - `description` (string) application description
+ - `tags` (array[string]) application tags
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
+
+---
+
+
+
+
+ Used at the start of entering the page to obtain information such as features, input parameter names, types, and default values.
+
+ ### Query
+
+
+
+ User identifier, defined by the developer's rules, must be unique within the application.
+
+
+
+ ### Response
+ - `user_input_form` (array[object]) User input form configuration
+ - `text-input` (object) Text input control
+ - `label` (string) Variable display label name
+ - `variable` (string) Variable ID
+ - `required` (bool) Whether it is required
+ - `default` (string) Default value
+ - `paragraph` (object) Paragraph text input control
+ - `label` (string) Variable display label name
+ - `variable` (string) Variable ID
+ - `required` (bool) Whether it is required
+ - `default` (string) Default value
+ - `select` (object) Dropdown control
+ - `label` (string) Variable display label name
+ - `variable` (string) Variable ID
+ - `required` (bool) Whether it is required
+ - `default` (string) Default value
+ - `options` (array[string]) Option values
+ - `file_upload` (object) File upload configuration
+ - `image` (object) Image settings
+ Currently only supports image types: `png`, `jpg`, `jpeg`, `webp`, `gif`
+ - `enabled` (bool) Whether it is enabled
+ - `number_limits` (int) Image number limit, default is 3
+ - `transfer_methods` (array[string]) List of transfer methods, remote_url, local_file, must choose one
+ - `system_parameters` (object) System parameters
+ - `file_size_limit` (int) Document upload size limit (MB)
+ - `image_file_size_limit` (int) Image file upload size limit (MB)
+ - `audio_file_size_limit` (int) Audio file upload size limit (MB)
+ - `video_file_size_limit` (int) Video file upload size limit (MB)
+
+
+
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
+ --header 'Authorization: Bearer {api_key}'
+ ```
+
+
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "user_input_form": [
+ {
+ "paragraph": {
+ "label": "Query",
+ "variable": "query",
+ "required": true,
+ "default": ""
+ }
+ }
+ ],
+ "file_upload": {
+ "image": {
+ "enabled": false,
+ "number_limits": 3,
+ "detail": "high",
+ "transfer_methods": [
+ "remote_url",
+ "local_file"
+ ]
+ }
+ },
+ "system_parameters": {
+ "file_size_limit": 15,
+ "image_file_size_limit": 10,
+ "audio_file_size_limit": 50,
+ "video_file_size_limit": 100
+ }
+ }
+ ```
+
+
+
diff --git a/web/app/components/develop/template/template_workflow.ja.mdx b/web/app/components/develop/template/template_workflow.ja.mdx
index e032ca5b4d..56eaeda2d7 100644
--- a/web/app/components/develop/template/template_workflow.ja.mdx
+++ b/web/app/components/develop/template/template_workflow.ja.mdx
@@ -498,104 +498,6 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
---
-
-
-
- ページに入る際に、機能、入力パラメータ名、タイプ、デフォルト値などの情報を取得するために使用されます。
-
- ### クエリ
-
-
-
- ユーザー識別子、開発者のルールで定義され、アプリケーション内で一意でなければなりません。
-
-
-
- ### 応答
- - `user_input_form` (array[object]) ユーザー入力フォームの設定
- - `text-input` (object) テキスト入力コントロール
- - `label` (string) 変数表示ラベル名
- - `variable` (string) 変数ID
- - `required` (bool) 必須かどうか
- - `default` (string) デフォルト値
- - `paragraph` (object) 段落テキスト入力コントロール
- - `label` (string) 変数表示ラベル名
- - `variable` (string) 変数ID
- - `required` (bool) 必須かどうか
- - `default` (string) デフォルト値
- - `select` (object) ドロップダウンコントロール
- - `label` (string) 変数表示ラベル名
- - `variable` (string) 変数ID
- - `required` (bool) 必須かどうか
- - `default` (string) デフォルト値
- - `options` (array[string]) オプション値
- - `file_upload` (object) ファイルアップロード設定
- - `image` (object) 画像設定
- 現在サポートされている画像タイプのみ:`png`, `jpg`, `jpeg`, `webp`, `gif`
- - `enabled` (bool) 有効かどうか
- - `number_limits` (int) 画像数の制限、デフォルトは3
- - `transfer_methods` (array[string]) 転送方法のリスト、remote_url, local_file、いずれかを選択する必要があります
- - `system_parameters` (object) システムパラメータ
- - `file_size_limit` (int) ドキュメントアップロードサイズ制限(MB)
- - `image_file_size_limit` (int) 画像ファイルアップロードサイズ制限(MB)
- - `audio_file_size_limit` (int) オーディオファイルアップロードサイズ制限(MB)
- - `video_file_size_limit` (int) ビデオファイルアップロードサイズ制限(MB)
-
-
-
-
-
-
- ```bash {{ title: 'cURL' }}
- curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
- --header 'Authorization: Bearer {api_key}'
- ```
-
-
-
-
- ```json {{ title: '応答' }}
- {
- "user_input_form": [
- {
- "paragraph": {
- "label": "Query",
- "variable": "query",
- "required": true,
- "default": ""
- }
- }
- ],
- "file_upload": {
- "image": {
- "enabled": false,
- "number_limits": 3,
- "detail": "high",
- "transfer_methods": [
- "remote_url",
- "local_file"
- ]
- }
- },
- "system_parameters": {
- "file_size_limit": 15,
- "image_file_size_limit": 10,
- "audio_file_size_limit": 50,
- "video_file_size_limit": 100
- }
- }
- ```
-
-
-
-
----
-
+---
+
+
+
+
+ このアプリケーションの基本情報を取得するために使用されます
+ ### Query
+
+
+
+ ユーザー識別子、開発者のルールによって定義され、アプリケーション内で一意でなければなりません。
+
+
+ ### Response
+ - `name` (string) アプリケーションの名前
+ - `description` (string) アプリケーションの説明
+ - `tags` (array[string]) アプリケーションのタグ
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
+
+---
+
+
+
+
+ ページに入る際に、機能、入力パラメータ名、タイプ、デフォルト値などの情報を取得するために使用されます。
+
+ ### クエリ
+
+
+
+ ユーザー識別子、開発者のルールで定義され、アプリケーション内で一意でなければなりません。
+
+
+
+ ### 応答
+ - `user_input_form` (array[object]) ユーザー入力フォームの設定
+ - `text-input` (object) テキスト入力コントロール
+ - `label` (string) 変数表示ラベル名
+ - `variable` (string) 変数ID
+ - `required` (bool) 必須かどうか
+ - `default` (string) デフォルト値
+ - `paragraph` (object) 段落テキスト入力コントロール
+ - `label` (string) 変数表示ラベル名
+ - `variable` (string) 変数ID
+ - `required` (bool) 必須かどうか
+ - `default` (string) デフォルト値
+ - `select` (object) ドロップダウンコントロール
+ - `label` (string) 変数表示ラベル名
+ - `variable` (string) 変数ID
+ - `required` (bool) 必須かどうか
+ - `default` (string) デフォルト値
+ - `options` (array[string]) オプション値
+ - `file_upload` (object) ファイルアップロード設定
+ - `image` (object) 画像設定
+ 現在サポートされている画像タイプのみ:`png`, `jpg`, `jpeg`, `webp`, `gif`
+ - `enabled` (bool) 有効かどうか
+ - `number_limits` (int) 画像数の制限、デフォルトは3
+ - `transfer_methods` (array[string]) 転送方法のリスト、remote_url, local_file、いずれかを選択する必要があります
+ - `system_parameters` (object) システムパラメータ
+ - `file_size_limit` (int) ドキュメントアップロードサイズ制限(MB)
+ - `image_file_size_limit` (int) 画像ファイルアップロードサイズ制限(MB)
+ - `audio_file_size_limit` (int) オーディオファイルアップロードサイズ制限(MB)
+ - `video_file_size_limit` (int) ビデオファイルアップロードサイズ制限(MB)
+
+
+
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
+ --header 'Authorization: Bearer {api_key}'
+ ```
+
+
+
+
+ ```json {{ title: '応答' }}
+ {
+ "user_input_form": [
+ {
+ "paragraph": {
+ "label": "Query",
+ "variable": "query",
+ "required": true,
+ "default": ""
+ }
+ }
+ ],
+ "file_upload": {
+ "image": {
+ "enabled": false,
+ "number_limits": 3,
+ "detail": "high",
+ "transfer_methods": [
+ "remote_url",
+ "local_file"
+ ]
+ }
+ },
+ "system_parameters": {
+ "file_size_limit": 15,
+ "image_file_size_limit": 10,
+ "audio_file_size_limit": 50,
+ "video_file_size_limit": 100
+ }
+ }
+ ```
+
+
+
diff --git a/web/app/components/develop/template/template_workflow.zh.mdx b/web/app/components/develop/template/template_workflow.zh.mdx
index 70557b013c..cfebb0e319 100644
--- a/web/app/components/develop/template/template_workflow.zh.mdx
+++ b/web/app/components/develop/template/template_workflow.zh.mdx
@@ -490,104 +490,6 @@ Workflow 应用无会话支持,适合用于翻译/文章写作/总结 AI 等
---
-
-
-
- 用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。
-
- ### Query
-
-
-
- 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
-
-
-
- ### Response
- - `user_input_form` (array[object]) 用户输入表单配置
- - `text-input` (object) 文本输入控件
- - `label` (string) 控件展示标签名
- - `variable` (string) 控件 ID
- - `required` (bool) 是否必填
- - `default` (string) 默认值
- - `paragraph` (object) 段落文本输入控件
- - `label` (string) 控件展示标签名
- - `variable` (string) 控件 ID
- - `required` (bool) 是否必填
- - `default` (string) 默认值
- - `select` (object) 下拉控件
- - `label` (string) 控件展示标签名
- - `variable` (string) 控件 ID
- - `required` (bool) 是否必填
- - `default` (string) 默认值
- - `options` (array[string]) 选项值
- - `file_upload` (object) 文件上传配置
- - `image` (object) 图片设置
- 当前仅支持图片类型:`png`, `jpg`, `jpeg`, `webp`, `gif`
- - `enabled` (bool) 是否开启
- - `number_limits` (int) 图片数量限制,默认 3
- - `transfer_methods` (array[string]) 传递方式列表,remote_url , local_file,必选一个
- - `system_parameters` (object) 系统参数
- - `file_size_limit` (int) 文档上传大小限制 (MB)
- - `image_file_size_limit` (int) 图片文件上传大小限制(MB)
- - `audio_file_size_limit` (int) 音频文件上传大小限制 (MB)
- - `video_file_size_limit` (int) 视频文件上传大小限制 (MB)
-
-
-
-
-
-
- ```bash {{ title: 'cURL' }}
- curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
- --header 'Authorization: Bearer {api_key}'
- ```
-
-
-
-
- ```json {{ title: 'Response' }}
- {
- "user_input_form": [
- {
- "paragraph": {
- "label": "Query",
- "variable": "query",
- "required": true,
- "default": ""
- }
- }
- ],
- "file_upload": {
- "image": {
- "enabled": false,
- "number_limits": 3,
- "detail": "high",
- "transfer_methods": [
- "remote_url",
- "local_file"
- ]
- }
- },
- "system_parameters": {
- "file_size_limit": 15,
- "image_file_size_limit": 10,
- "audio_file_size_limit": 50,
- "video_file_size_limit": 100
- }
- }
- ```
-
-
-
-
----
-
+---
+
+
+
+
+ 用于获取应用的基本信息
+ ### Query
+
+
+
+ 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
+
+
+ ### Response
+ - `name` (string) 应用名称
+ - `description` (string) 应用描述
+ - `tags` (array[string]) 应用标签
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/info?user=abc-123' \
+ -H 'Authorization: Bearer {api_key}'
+ ```
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "name": "My App",
+ "description": "This is my app.",
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
+ }
+ ```
+
+
+
+
+---
+
+
+
+
+ 用于进入页面一开始,获取功能开关、输入参数名称、类型及默认值等使用。
+
+ ### Query
+
+
+
+ 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
+
+
+
+ ### Response
+ - `user_input_form` (array[object]) 用户输入表单配置
+ - `text-input` (object) 文本输入控件
+ - `label` (string) 控件展示标签名
+ - `variable` (string) 控件 ID
+ - `required` (bool) 是否必填
+ - `default` (string) 默认值
+ - `paragraph` (object) 段落文本输入控件
+ - `label` (string) 控件展示标签名
+ - `variable` (string) 控件 ID
+ - `required` (bool) 是否必填
+ - `default` (string) 默认值
+ - `select` (object) 下拉控件
+ - `label` (string) 控件展示标签名
+ - `variable` (string) 控件 ID
+ - `required` (bool) 是否必填
+ - `default` (string) 默认值
+ - `options` (array[string]) 选项值
+ - `file_upload` (object) 文件上传配置
+ - `image` (object) 图片设置
+ 当前仅支持图片类型:`png`, `jpg`, `jpeg`, `webp`, `gif`
+ - `enabled` (bool) 是否开启
+ - `number_limits` (int) 图片数量限制,默认 3
+ - `transfer_methods` (array[string]) 传递方式列表,remote_url , local_file,必选一个
+ - `system_parameters` (object) 系统参数
+ - `file_size_limit` (int) 文档上传大小限制 (MB)
+ - `image_file_size_limit` (int) 图片文件上传大小限制(MB)
+ - `audio_file_size_limit` (int) 音频文件上传大小限制 (MB)
+ - `video_file_size_limit` (int) 视频文件上传大小限制 (MB)
+
+
+
+
+
+
+ ```bash {{ title: 'cURL' }}
+ curl -X GET '${props.appDetail.api_base_url}/parameters?user=abc-123' \
+ --header 'Authorization: Bearer {api_key}'
+ ```
+
+
+
+
+ ```json {{ title: 'Response' }}
+ {
+ "user_input_form": [
+ {
+ "paragraph": {
+ "label": "Query",
+ "variable": "query",
+ "required": true,
+ "default": ""
+ }
+ }
+ ],
+ "file_upload": {
+ "image": {
+ "enabled": false,
+ "number_limits": 3,
+ "detail": "high",
+ "transfer_methods": [
+ "remote_url",
+ "local_file"
+ ]
+ }
+ },
+ "system_parameters": {
+ "file_size_limit": 15,
+ "image_file_size_limit": 10,
+ "audio_file_size_limit": 50,
+ "video_file_size_limit": 100
+ }
+ }
+ ```
+
+
+