Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Fixed wrong /text-to-audio curl example (#5286)
Masahiro Yamaguchi4f60fe7bc68f
diff --git a/web/app/components/develop/template/template.en.mdx b/web/app/components/develop/template/template.en.mdxold mode 100644new mode 100755index 41e80f6c770..27ee1b48773--- a/web/app/components/develop/template/template.en.mdx+++ b/web/app/components/develop/template/template.en.mdx@@ -515,14 +515,19 @@ The text generation application offers non-session support and is ideal for tran</Col><Col sticky>- <CodeGroup title="Request" tag="POST" label="/text-to-audio" targetCode={`curl --location --request POST '${props.appDetail.api_base_url}/text-to-audio' \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--form 'text=Hello Dify;user=abc-123;streaming=false`}>+ <CodeGroup title="Request" tag="POST" label="/text-to-audio" targetCode={`curl -o text-to-audio.mp3 -X POST '${props.appDetail.api_base_url}/text-to-audio' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n "text": "Hello Dify",\n "user": "abc-123",\n "streaming": false\n}'`}>```bash {{ title: 'cURL' }}- curl --location --request POST '${props.appDetail.api_base_url}/text-to-audio' \- --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \- --form 'file=Hello Dify;user=abc-123;streaming=false'+ 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 '{+ "text": "Hello Dify",+ "user": "abc-123",+ "streaming": false+ }'```-+</CodeGroup><CodeGroup title="headers">diff --git a/web/app/components/develop/template/template.zh.mdx b/web/app/components/develop/template/template.zh.mdxold mode 100644new mode 100755index 1d0d6a29889..f89df5b326d--- a/web/app/components/develop/template/template.zh.mdx+++ b/web/app/components/develop/template/template.zh.mdx@@ -476,14 +476,19 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'</Col><Col sticky>- <CodeGroup title="Request" tag="POST" label="/text-to-audio" targetCode={`curl --location --request POST '${props.appDetail.api_base_url}/text-to-audio' \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--form 'text=你好Dify;user=abc-123;streaming=false`}>+ <CodeGroup title="Request" tag="POST" label="/text-to-audio" targetCode={`curl -o text-to-audio.mp3 -X POST '${props.appDetail.api_base_url}/text-to-audio' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n "text": "你好Dify",\n "user": "abc-123",\n "streaming": false\n}'`}>```bash {{ title: 'cURL' }}- curl --location --request POST '${props.appDetail.api_base_url}/text-to-audio' \- --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \- --form 'file=你好Dify;user=abc-123;streaming=false'+ 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 '{+ "text": "你好Dify",+ "user": "abc-123",+ "streaming": false+ }'```-+</CodeGroup><CodeGroup title="headers">diff --git a/web/app/components/develop/template/template_advanced_chat.en.mdx b/web/app/components/develop/template/template_advanced_chat.en.mdxindex 006134e45e5..e5b0785129d 100644--- a/web/app/components/develop/template/template_advanced_chat.en.mdx+++ b/web/app/components/develop/template/template_advanced_chat.en.mdx@@ -880,14 +880,18 @@ Chat applications support session persistence, allowing previous chat history to</Col><Col sticky>- <CodeGroup title="Request" tag="POST" label="/text-to-audio" targetCode={`curl --location --request POST '${props.appDetail.api_base_url}/text-to-audio' \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--form 'text=Hello Dify;user=abc-123;streaming=false`}>+ <CodeGroup title="Request" tag="POST" label="/text-to-audio" targetCode={`curl -o text-to-audio.mp3 -X POST '${props.appDetail.api_base_url}/text-to-audio' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n "text": "Hello Dify",\n "user": "abc-123",\n "streaming": false\n}'`}>```bash {{ title: 'cURL' }}- curl --location --request POST '${props.appDetail.api_base_url}/text-to-audio' \- --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \- --form 'file=Hello Dify;user=abc-123;streaming=false'+ 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 '{+ "text": "Hello Dify",+ "user": "abc-123",+ "streaming": false+ }'```-</CodeGroup><CodeGroup title="headers">diff --git a/web/app/components/develop/template/template_advanced_chat.zh.mdx b/web/app/components/develop/template/template_advanced_chat.zh.mdxold mode 100644new mode 100755index 4c57f2abaa7..59a87652b68--- a/web/app/components/develop/template/template_advanced_chat.zh.mdx+++ b/web/app/components/develop/template/template_advanced_chat.zh.mdx@@ -911,14 +911,19 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'</Col><Col sticky>- <CodeGroup title="Request" tag="POST" label="/text-to-audio" targetCode={`curl --location --request POST '${props.appDetail.api_base_url}/text-to-audio' \\\n--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \\\n--form 'text=你好Dify;user=abc-123;streaming=false`}>+ <CodeGroup title="Request" tag="POST" label="/text-to-audio" targetCode={`curl -o text-to-audio.mp3 -X POST '${props.appDetail.api_base_url}/text-to-audio' \\\n--header 'Authorization: Bearer {api_key}' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n "text": "你好Dify",\n "user": "abc-123",\n "streaming": false\n}'`}>```bash {{ title: 'cURL' }}- curl --location --request POST '${props.appDetail.api_base_url}/text-to-audio' \- --header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \- --form 'file=你好Dify;user=abc-123;streaming=false'+ 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 '{+ "text": "你好Dify",+ "user": "abc-123",+ "streaming": false+ }'```-+</CodeGroup><CodeGroup title="headers">