diff --git a/web/app/components/develop/template/template.en.mdx b/web/app/components/develop/template/template.en.mdx index 5e8070763..38208bb7e 100755 --- a/web/app/components/develop/template/template.en.mdx +++ b/web/app/components/develop/template/template.en.mdx @@ -53,11 +53,18 @@ The text generation application offers non-session support and is ideal for tran The rules are defined by the developer and need to ensure that the user identifier is unique within the application. The Service API does not share conversations created by the WebApp. - File list, suitable for inputting files (images) combined with text understanding and answering questions, available only when the model supports Vision capability. - - `type` (string) Supported type: `image` (currently only supports image type) - - `transfer_method` (string) Transfer method, `remote_url` for image URL / `local_file` for file upload - - `url` (string) Image URL (when the transfer method is `remote_url`) - - `upload_file_id` (string) Uploaded file ID, which must be obtained by uploading through the File Upload API in advance (when the transfer method is `local_file`) + File list, suitable for inputting files combined with text understanding and answering questions, available only when the model supports Vision/Video capability. + - `type` (string) Supported type: + - `document` Supported types include: 'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `image` Supported types include: 'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' + - `audio` Supported types include: 'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` Supported types include: 'MP4', 'MOV', 'MPEG', 'WEBM' + - `custom` Supported types include: other file types + - `transfer_method` (string) Transfer method: + - `remote_url`: File URL. + - `local_file`: Upload file. + - `url` File URL. (Only when transfer method is `remote_url`). + - `upload_file_id` Upload file ID. (Only when transfer method is `local_file`). diff --git a/web/app/components/develop/template/template.ja.mdx b/web/app/components/develop/template/template.ja.mdx index 0bd8649d9..892197bf5 100755 --- a/web/app/components/develop/template/template.ja.mdx +++ b/web/app/components/develop/template/template.ja.mdx @@ -53,11 +53,18 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from アプリケーション内で開発者が一意に定義する必要があります。 - ファイルリスト、モデルがVision機能をサポートしている場合のみ、テキスト理解と質問応答を組み合わせたファイル(画像)の入力に適しています。 - - `type` (string) サポートされるタイプ:`image`(現在は画像タイプのみサポート) - - `transfer_method` (string) 転送方法、画像URLの場合は`remote_url` / ファイルアップロードの場合は`local_file` - - `url` (string) 画像URL(転送方法が`remote_url`の場合) - - `upload_file_id` (string) アップロードされたファイルID、事前にファイルアップロードAPIを通じてアップロードする必要があります(転送方法が`local_file`の場合) + ファイルリスト、モデルが Vision/Video 機能をサポートしている場合に限り、ファイルをテキスト理解および質問応答に組み合わせて入力するのに適しています。 + - `type` (string) サポートされるタイプ: + - `document` サポートされるタイプには以下が含まれます:'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `image` サポートされるタイプには以下が含まれます:'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' + - `audio` サポートされるタイプには以下が含まれます:'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` サポートされるタイプには以下が含まれます:'MP4', 'MOV', 'MPEG', 'WEBM' + - `custom` サポートされるタイプには以下が含まれます:その他のファイルタイプ + - `transfer_method` (string) 転送方法: + - `remote_url`: ファイルのURL。 + - `local_file`: ファイルをアップロード。 + - `url` ファイルのURL。(転送方法が `remote_url` の場合のみ)。 + - `upload_file_id` アップロードされたファイルID。(転送方法が `local_file` の場合のみ)。 diff --git a/web/app/components/develop/template/template.zh.mdx b/web/app/components/develop/template/template.zh.mdx index ff77cbb74..8d85e9685 100755 --- a/web/app/components/develop/template/template.zh.mdx +++ b/web/app/components/develop/template/template.zh.mdx @@ -51,12 +51,17 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' 由开发者定义规则,需保证用户标识在应用内唯一。 - 上传的文件。 - - `type` (string) 支持类型:图片 `image`(目前仅支持图片格式) 。 - - `transfer_method` (string) 传递方式: - - `remote_url`: 图片地址。 + 文件列表,适用于传入文件结合文本理解并回答问题,仅当模型支持 Vision/Video 能力时可用。 + - `type` (string) 支持类型: + - `document` 具体类型包含:'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `image` 具体类型包含:'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' + - `audio` 具体类型包含:'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` 具体类型包含:'MP4', 'MOV', 'MPEG', 'WEBM' + - `custom` 具体类型包含:其他文件类型 + - `transfer_method` (string) 传递方式: + - `remote_url`: 文件地址。 - `local_file`: 上传文件。 - - `url` 图片地址。(仅当传递方式为 `remote_url` 时)。 + - `url` 文件地址。(仅当传递方式为 `remote_url` 时)。 - `upload_file_id` 上传文件 ID。(仅当传递方式为 `local_file `时)。 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 508bebb48..42dd57957 100644 --- a/web/app/components/develop/template/template_advanced_chat.en.mdx +++ b/web/app/components/develop/template/template_advanced_chat.en.mdx @@ -57,16 +57,18 @@ Chat applications support session persistence, allowing previous chat history to Conversation ID, to continue the conversation based on previous chat records, it is necessary to pass the previous message's conversation_id. - File list, suitable for inputting files combined with text understanding and answering questions, available only when the model supports Vision capability. + File list, suitable for inputting files combined with text understanding and answering questions, available only when the model supports Vision/Video capability. - `type` (string) Supported type: - - `document` ('TXT', 'MD', 'MARKDOWN', 'PDF', 'HTML', 'XLSX', 'XLS', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB') - - `image` ('JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG') - - `audio` ('MP3', 'M4A', 'WAV', 'WEBM', 'AMR') - - `video` ('MP4', 'MOV', 'MPEG', 'MPGA') - - `custom` (Other file types) - - `transfer_method` (string) Transfer method, `remote_url` for image URL / `local_file` for file upload - - `url` (string) Image URL (when the transfer method is `remote_url`) - - `upload_file_id` (string) Uploaded file ID, which must be obtained by uploading through the File Upload API in advance (when the transfer method is `local_file`) + - `document` Supported types include: 'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `image` Supported types include: 'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' + - `audio` Supported types include: 'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` Supported types include: 'MP4', 'MOV', 'MPEG', 'WEBM' + - `custom` Supported types include: other file types + - `transfer_method` (string) Transfer method: + - `remote_url`: File URL. + - `local_file`: Upload file. + - `url` File URL. (Only when transfer method is `remote_url`). + - `upload_file_id` Upload file ID. (Only when transfer method is `local_file`). Auto-generate title, default is `true`. 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 cb4cf7815..4ab123f56 100644 --- a/web/app/components/develop/template/template_advanced_chat.ja.mdx +++ b/web/app/components/develop/template/template_advanced_chat.ja.mdx @@ -57,16 +57,18 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from 会話ID、以前のチャット記録に基づいて会話を続けるには、以前のメッセージのconversation_idを渡す必要があります。 - ファイルリスト、テキストの理解と質問への回答を組み合わせたファイルの入力に適しており、モデルがビジョン機能をサポートしている場合にのみ利用可能です。 - - `type` (string) サポートされているタイプ: - - `document` ('TXT', 'MD', 'MARKDOWN', 'PDF', 'HTML', 'XLSX', 'XLS', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB') - - `image` ('JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG') - - `audio` ('MP3', 'M4A', 'WAV', 'WEBM', 'AMR') - - `video` ('MP4', 'MOV', 'MPEG', 'MPGA') - - `custom` (他のファイルタイプ) - - `transfer_method` (string) 転送方法、画像URLの場合は`remote_url` / ファイルアップロードの場合は`local_file` - - `url` (string) 画像URL(転送方法が`remote_url`の場合) - - `upload_file_id` (string) アップロードされたファイルID、事前にファイルアップロードAPIを通じて取得する必要があります(転送方法が`local_file`の場合) + ファイルリスト、モデルが Vision/Video 機能をサポートしている場合に限り、ファイルをテキスト理解および質問応答に組み合わせて入力するのに適しています。 + - `type` (string) サポートされるタイプ: + - `document` サポートされるタイプには以下が含まれます:'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `image` サポートされるタイプには以下が含まれます:'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' + - `audio` サポートされるタイプには以下が含まれます:'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` サポートされるタイプには以下が含まれます:'MP4', 'MOV', 'MPEG', 'WEBM' + - `custom` サポートされるタイプには以下が含まれます:その他のファイルタイプ + - `transfer_method` (string) 転送方法: + - `remote_url`: ファイルのURL。 + - `local_file`: ファイルをアップロード。 + - `url` ファイルのURL。(転送方法が `remote_url` の場合のみ)。 + - `upload_file_id` アップロードされたファイルID。(転送方法が `local_file` の場合のみ)。 タイトルを自動生成、デフォルトは`true`。 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 56d9a2a07..009b6e0cc 100755 --- a/web/app/components/develop/template/template_advanced_chat.zh.mdx +++ b/web/app/components/develop/template/template_advanced_chat.zh.mdx @@ -55,17 +55,17 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' (选填)会话 ID,需要基于之前的聊天记录继续对话,必须传之前消息的 conversation_id。 - 文件列表,适用于传入文件结合文本理解并回答问题,仅当模型支持 Vision 能力时可用。 + 文件列表,适用于传入文件结合文本理解并回答问题,仅当模型支持 Vision/Video 能力时可用。 - `type` (string) 支持类型: - - `document` 具体类型包含:'TXT', 'MD', 'MARKDOWN', 'PDF', 'HTML', 'XLSX', 'XLS', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `document` 具体类型包含:'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' - `image` 具体类型包含:'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' - - `audio` 具体类型包含:'MP3', 'M4A', 'WAV', 'WEBM', 'AMR' - - `video` 具体类型包含:'MP4', 'MOV', 'MPEG', 'MPGA' + - `audio` 具体类型包含:'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` 具体类型包含:'MP4', 'MOV', 'MPEG', 'WEBM' - `custom` 具体类型包含:其他文件类型 - `transfer_method` (string) 传递方式: - - `remote_url`: 图片地址。 + - `remote_url`: 文件地址。 - `local_file`: 上传文件。 - - `url` 图片地址。(仅当传递方式为 `remote_url` 时)。 + - `url` 文件地址。(仅当传递方式为 `remote_url` 时)。 - `upload_file_id` 上传文件 ID。(仅当传递方式为 `local_file `时)。 diff --git a/web/app/components/develop/template/template_chat.en.mdx b/web/app/components/develop/template/template_chat.en.mdx index b47d658d4..82b50d58e 100644 --- a/web/app/components/develop/template/template_chat.en.mdx +++ b/web/app/components/develop/template/template_chat.en.mdx @@ -56,11 +56,18 @@ Chat applications support session persistence, allowing previous chat history to Conversation ID, to continue the conversation based on previous chat records, it is necessary to pass the previous message's conversation_id. - File list, suitable for inputting files (images) combined with text understanding and answering questions, available only when the model supports Vision capability. - - `type` (string) Supported type: `image` (currently only supports image type) - - `transfer_method` (string) Transfer method, `remote_url` for image URL / `local_file` for file upload - - `url` (string) Image URL (when the transfer method is `remote_url`) - - `upload_file_id` (string) Uploaded file ID, which must be obtained by uploading through the File Upload API in advance (when the transfer method is `local_file`) + File list, suitable for inputting files combined with text understanding and answering questions, available only when the model supports Vision/Video capability. + - `type` (string) Supported type: + - `document` Supported types include: 'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `image` Supported types include: 'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' + - `audio` Supported types include: 'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` Supported types include: 'MP4', 'MOV', 'MPEG', 'WEBM' + - `custom` Supported types include: other file types + - `transfer_method` (string) Transfer method: + - `remote_url`: File URL. + - `local_file`: Upload file. + - `url` File URL. (Only when transfer method is `remote_url`). + - `upload_file_id` Upload file ID. (Only when transfer method is `local_file`). Auto-generate title, default is `true`. diff --git a/web/app/components/develop/template/template_chat.ja.mdx b/web/app/components/develop/template/template_chat.ja.mdx index d63479478..69f48d021 100644 --- a/web/app/components/develop/template/template_chat.ja.mdx +++ b/web/app/components/develop/template/template_chat.ja.mdx @@ -56,11 +56,18 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from 会話ID、以前のチャット記録に基づいて会話を続けるには、前のメッセージのconversation_idを渡す必要があります。 - ファイルリスト、テキストの理解と質問への回答を組み合わせたファイル(画像)の入力に適しており、モデルがビジョン機能をサポートしている場合にのみ利用可能です。 - - `type` (string) サポートされているタイプ:`image`(現在は画像タイプのみサポート) - - `transfer_method` (string) 転送方法、画像URLの場合は`remote_url` / ファイルアップロードの場合は`local_file` - - `url` (string) 画像URL(転送方法が`remote_url`の場合) - - `upload_file_id` (string) アップロードされたファイルID、事前にファイルアップロードAPIを通じて取得する必要があります(転送方法が`local_file`の場合) + ファイルリスト、モデルが Vision/Video 機能をサポートしている場合に限り、ファイルをテキスト理解および質問応答に組み合わせて入力するのに適しています。 + - `type` (string) サポートされるタイプ: + - `document` サポートされるタイプには以下が含まれます:'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `image` サポートされるタイプには以下が含まれます:'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' + - `audio` サポートされるタイプには以下が含まれます:'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` サポートされるタイプには以下が含まれます:'MP4', 'MOV', 'MPEG', 'WEBM' + - `custom` サポートされるタイプには以下が含まれます:その他のファイルタイプ + - `transfer_method` (string) 転送方法: + - `remote_url`: ファイルのURL。 + - `local_file`: ファイルをアップロード。 + - `url` ファイルのURL。(転送方法が `remote_url` の場合のみ)。 + - `upload_file_id` アップロードされたファイルID。(転送方法が `local_file` の場合のみ)。 タイトルを自動生成します。デフォルトは`true`です。 diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx index 6ecf5724a..581daef72 100644 --- a/web/app/components/develop/template/template_chat.zh.mdx +++ b/web/app/components/develop/template/template_chat.zh.mdx @@ -55,12 +55,17 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' (选填)会话 ID,需要基于之前的聊天记录继续对话,必须传之前消息的 conversation_id。 - 上传的文件。 - - `type` (string) 支持类型:图片 `image`(目前仅支持图片格式) 。 + 文件列表,适用于传入文件结合文本理解并回答问题,仅当模型支持 Vision/Video 能力时可用。 + - `type` (string) 支持类型: + - `document` 具体类型包含:'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `image` 具体类型包含:'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' + - `audio` 具体类型包含:'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` 具体类型包含:'MP4', 'MOV', 'MPEG', 'WEBM' + - `custom` 具体类型包含:其他文件类型 - `transfer_method` (string) 传递方式: - - `remote_url`: 图片地址。 + - `remote_url`: 文件地址。 - `local_file`: 上传文件。 - - `url` 图片地址。(仅当传递方式为 `remote_url` 时)。 + - `url` 文件地址。(仅当传递方式为 `remote_url` 时)。 - `upload_file_id` 上传文件 ID。(仅当传递方式为 `local_file `时)。 diff --git a/web/app/components/develop/template/template_workflow.en.mdx b/web/app/components/develop/template/template_workflow.en.mdx index 5daf41449..5d512bd4d 100644 --- a/web/app/components/develop/template/template_workflow.en.mdx +++ b/web/app/components/develop/template/template_workflow.en.mdx @@ -39,15 +39,18 @@ Workflow applications offers non-session support and is ideal for translation, a File Array type variable is suitable for inputting files combined with text understanding and answering questions, available only when the model supports file parsing and understanding capability. If the variable is of File Array type, the corresponding value should be a list whose elements contain following attributions: - `type` (string) Supported type: - - `document` ('TXT', 'MD', 'MARKDOWN', 'PDF', 'HTML', 'XLSX', 'XLS', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB') - - `image` ('JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG') - - `audio` ('MP3', 'M4A', 'WAV', 'WEBM', 'AMR') - - `video` ('MP4', 'MOV', 'MPEG', 'MPGA') - - `custom` (Other file types) - - `transfer_method` (string) Transfer method, `remote_url` for image URL / `local_file` for file upload - - `url` (string) Image URL (when the transfer method is `remote_url`) - - `upload_file_id` (string) Uploaded file ID, which must be obtained by uploading through the File Upload API in advance (when the transfer method is `local_file`) + - `document` Supported types include: 'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `image` Supported types include: 'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' + - `audio` Supported types include: 'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` Supported types include: 'MP4', 'MOV', 'MPEG', 'WEBM' + - `custom` Supported types include: other file types + - `transfer_method` (string) Transfer method: + - `remote_url`: File URL. + - `local_file`: Upload file. + - `url` File URL. (Only when transfer method is `remote_url`). + - `upload_file_id` Upload file ID. (Only when transfer method is `local_file`). + - `response_mode` (string) Required The mode of response return, supporting: - `streaming` Streaming mode (recommended), implements a typewriter-like output through SSE ([Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)). diff --git a/web/app/components/develop/template/template_workflow.ja.mdx b/web/app/components/develop/template/template_workflow.ja.mdx index afd98c7ef..5582a8095 100644 --- a/web/app/components/develop/template/template_workflow.ja.mdx +++ b/web/app/components/develop/template/template_workflow.ja.mdx @@ -39,16 +39,19 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from ファイルリストは、テキスト理解と質問への回答を組み合わせたファイルの入力に適しています。モデルがファイルの解析と理解機能をサポートしている場合にのみ使用できます。 変数がファイルリストの場合、リストの各要素は以下の属性を持つ必要があります。 - - `type` (string) サポートされているタイプ: - - `document` ('TXT', 'MD', 'MARKDOWN', 'PDF', 'HTML', 'XLSX', 'XLS', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB') - - `image` ('JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG') - - `audio` ('MP3', 'M4A', 'WAV', 'WEBM', 'AMR') - - `video` ('MP4', 'MOV', 'MPEG', 'MPGA') - - `custom` (他のファイルタイプ) - - `transfer_method` (string) 転送方法、画像URLの場合は`remote_url` / ファイルアップロードの場合は`local_file` - - `url` (string) 画像URL(転送方法が`remote_url`の場合) - - `upload_file_id` (string) アップロードされたファイルID、事前にファイルアップロードAPIを通じて取得する必要があります(転送方法が`local_file`の場合) - + - `type` (string) サポートされるタイプ: + - `document` サポートされるタイプには以下が含まれます:'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `image` サポートされるタイプには以下が含まれます:'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' + - `audio` サポートされるタイプには以下が含まれます:'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` サポートされるタイプには以下が含まれます:'MP4', 'MOV', 'MPEG', 'WEBM' + - `custom` サポートされるタイプには以下が含まれます:その他のファイルタイプ + - `transfer_method` (string) 転送方法: + - `remote_url`: ファイルのURL。 + - `local_file`: ファイルをアップロード。 + - `url` ファイルのURL。(転送方法が `remote_url` の場合のみ)。 + - `upload_file_id` アップロードされたファイルID。(転送方法が `local_file` の場合のみ)。 + + - `response_mode` (string) 必須 応答の返却モードを指定します。サポートされているモード: - `streaming` ストリーミングモード(推奨)、SSE([Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events))を通じてタイプライターのような出力を実装します。 diff --git a/web/app/components/develop/template/template_workflow.zh.mdx b/web/app/components/develop/template/template_workflow.zh.mdx index f40167718..3d82c5ad1 100644 --- a/web/app/components/develop/template/template_workflow.zh.mdx +++ b/web/app/components/develop/template/template_workflow.zh.mdx @@ -342,14 +342,17 @@ Workflow 应用无会话支持,适合用于翻译/文章写作/总结 AI 等 inputs 参数包含了多组键值对(Key/Value pairs),每组的键对应一个特定变量,每组的值则是该变量的具体值。变量可以是文件列表类型。 文件列表类型变量适用于传入文件结合文本理解并回答问题,仅当模型支持该类型文件解析能力时可用。如果该变量是文件列表类型,该变量对应的值应是列表格式,其中每个元素应包含以下内容: - `type` (string) 支持类型: - - `document` 具体类型包含:'TXT', 'MD', 'MARKDOWN', 'PDF', 'HTML', 'XLSX', 'XLS', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' + - `document` 具体类型包含:'TXT', 'MD', 'MARKDOWN', 'MDX', 'PDF', 'HTML', 'XLSX', 'XLS', 'VTT', 'PROPERTIES', 'DOC', 'DOCX', 'CSV', 'EML', 'MSG', 'PPTX', 'PPT', 'XML', 'EPUB' - `image` 具体类型包含:'JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG' - - `audio` 具体类型包含:'MP3', 'M4A', 'WAV', 'WEBM', 'AMR' - - `video` 具体类型包含:'MP4', 'MOV', 'MPEG', 'MPGA' + - `audio` 具体类型包含:'MP3', 'M4A', 'WAV', 'WEBM', 'MPGA' + - `video` 具体类型包含:'MP4', 'MOV', 'MPEG', 'WEBM' - `custom` 具体类型包含:其他文件类型 - - `transfer_method` (string) 传递方式,`remote_url` 图片地址 / `local_file` 上传文件 - - `url` (string) 图片地址(仅当传递方式为 `remote_url` 时) - - `upload_file_id` (string) 上传文件 ID(仅当传递方式为 `local_file` 时) + - `transfer_method` (string) 传递方式: + - `remote_url`: 文件地址。 + - `local_file`: 上传文件。 + - `url` 文件地址。(仅当传递方式为 `remote_url` 时)。 + - `upload_file_id` 上传文件 ID。(仅当传递方式为 `local_file `时)。 + - `response_mode` (string) Required 返回响应模式,支持: - `streaming` 流式模式(推荐)。基于 SSE(**[Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)**)实现类似打字机输出方式的流式返回。