Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dify x OpenAPI

[![Dify Version Support](https://img.shields.io/badge/Support_Dify_Version-1.4.2-blue)](https://github.com/langgenius/dify)
[![Dify Version Support](https://img.shields.io/badge/Support_Dify_Version-1.4.3-blue)](https://github.com/langgenius/dify)
[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![Package Manager: uv](https://img.shields.io/badge/package%20manager-uv-black)](https://github.com/astral-sh/uv)
Expand Down Expand Up @@ -39,7 +39,7 @@ Provides OpenAPI Schema for [Dify](https://github.com/langgenius/dify) API, whic
> [!tip]
> This indicates that the API has passed at least one test case request. If you find any API errors, feel free to submit an issue or PR!

- Knowledge Base: [OpenAPI Schema(中文)](./schema/knowledge_base.zh.yaml) | [OpenAPI Schema(English)](./schema/knowledge_base.en.yaml) | [Official Documentation Source](https://github.com/langgenius/dify/tree/1.4.2/web/app/(commonLayout)/datasets/template)
- Knowledge Base: [OpenAPI Schema(中文)](./schema/knowledge_base.zh.yaml) | [OpenAPI Schema(English)](./schema/knowledge_base.en.yaml) | [Official Documentation Source](https://github.com/langgenius/dify/tree/1.4.3/web/app/(commonLayout)/datasets/template)
- [x] POST /datasets - Create empty knowledge base
- [x] POST /datasets/{dataset_id} - Update knowledge base
- [x] GET /datasets/{dataset_id}/documents - Get document list
Expand Down Expand Up @@ -70,7 +70,7 @@ Provides OpenAPI Schema for [Dify](https://github.com/langgenius/dify) API, whic
- [x] POST /datasets/{dataset_id}/tags - Query dataset bound tags
- [x] POST /datasets/{dataset_id}/retrieval - Retrieve with metadata filtering conditions

- Chat Application: [OpenAPI Schema(中文)](./schema/app_chat.zh.yaml) | [OpenAPI Schema(English)](./schema/app_chat.en.yaml) | [Official Documentation Source](https://github.com/langgenius/dify/tree/1.4.2/web/app/components/develop/template)
- Chat Application: [OpenAPI Schema(中文)](./schema/app_chat.zh.yaml) | [OpenAPI Schema(English)](./schema/app_chat.en.yaml) | [Official Documentation Source](https://github.com/langgenius/dify/tree/1.4.3/web/app/components/develop/template)
- [x] POST /chat-messages - Send conversation message
- [x] POST /files/upload - Upload file
- [x] POST /messages/{message_id}/feedbacks - Message feedback
Expand All @@ -83,7 +83,7 @@ Provides OpenAPI Schema for [Dify](https://github.com/langgenius/dify) API, whic
- [x] GET /info - Get application basic information
- [x] GET /parameters - Get application parameters

- Advanced Chat Application: [OpenAPI Schema(中文)](./schema/app_advanced_chat.zh.yaml) | [OpenAPI Schema(English)](./schema/app_advanced_chat.en.yaml) | [Official Documentation Source](https://github.com/langgenius/dify/tree/1.4.2/web/app/components/develop/template)
- Advanced Chat Application: [OpenAPI Schema(中文)](./schema/app_advanced_chat.zh.yaml) | [OpenAPI Schema(English)](./schema/app_advanced_chat.en.yaml) | [Official Documentation Source](https://github.com/langgenius/dify/tree/1.4.3/web/app/components/develop/template)
- [x] POST /audio-to-text - Speech to text
- [x] POST /text-to-audio - Text to speech
- [x] GET /apps/annotations - Get annotation list
Expand All @@ -99,10 +99,10 @@ Provides OpenAPI Schema for [Dify](https://github.com/langgenius/dify) API, whic
- [x] GET /parameters - Get application parameters


- Text Generation Application: [OpenAPI Schema(中文)](./schema/app_generation.zh.yaml) | [OpenAPI Schema(English)](./schema/app_generation.en.yaml) | [Official Documentation Source](https://github.com/langgenius/dify/tree/1.4.2/web/app/components/develop/template)
- Text Generation Application: [OpenAPI Schema(中文)](./schema/app_generation.zh.yaml) | [OpenAPI Schema(English)](./schema/app_generation.en.yaml) | [Official Documentation Source](https://github.com/langgenius/dify/tree/1.4.3/web/app/components/develop/template)
- [x] POST /completion-messages - Send message

- Workflow Application: [OpenAPI Schema(中文)](./schema/app_workflow.zh.yaml) | [OpenAPI Schema(English)](./schema/app_workflow.en.yaml) | [Official Documentation Source](https://github.com/langgenius/dify/tree/1.4.2/web/app/components/develop/template)
- Workflow Application: [OpenAPI Schema(中文)](./schema/app_workflow.zh.yaml) | [OpenAPI Schema(English)](./schema/app_workflow.en.yaml) | [Official Documentation Source](https://github.com/langgenius/dify/tree/1.4.3/web/app/components/develop/template)
- [x] POST /workflows/run - Execute workflow
- [x] GET /workflows/run/{workflow_run_id} - Get workflow execution status
- [x] POST /workflows/tasks/{task_id}/stop - Stop response
Expand Down
12 changes: 6 additions & 6 deletions README.zh.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dify x OpenAPI

[![Dify Version Support](https://img.shields.io/badge/Support_Dify_Version-1.4.2-blue)](https://github.com/langgenius/dify)
[![Dify Version Support](https://img.shields.io/badge/Support_Dify_Version-1.4.3-blue)](https://github.com/langgenius/dify)
[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![Package Manager: uv](https://img.shields.io/badge/package%20manager-uv-black)](https://github.com/astral-sh/uv)
Expand Down Expand Up @@ -41,7 +41,7 @@
> [!tip]
> 这里指至少可以通过一次测试用例请求, 如果你发现有哪些API错误, 欢迎提issue或者pr!

- 知识库: [OpenAPI Schema(中文)](./schema/knowledge_base.zh.yaml) | [OpenAPI Schema(English)](./schema/knowledge_base.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.2/web/app/(commonLayout)/datasets/template)
- 知识库: [OpenAPI Schema(中文)](./schema/knowledge_base.zh.yaml) | [OpenAPI Schema(English)](./schema/knowledge_base.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.3/web/app/(commonLayout)/datasets/template)
- [x] POST /datasets - 创建空知识库
- [x] POST /datasets/{dataset_id} - 更新知识库
- [x] GET /datasets/{dataset_id}/documents - 获取文档列表
Expand Down Expand Up @@ -72,7 +72,7 @@
- [x] POST /datasets/{dataset_id}/tags - 查询知识库已绑定的标签
- [x] POST /datasets/{dataset_id}/retrieval - 带元数据过滤条件的检索

- 聊天应用: [OpenAPI Schema(中文)](./schema/app_chat.zh.yaml) | [OpenAPI Schema(English)](./schema/app_chat.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.2/web/app/components/develop/template)
- 聊天应用: [OpenAPI Schema(中文)](./schema/app_chat.zh.yaml) | [OpenAPI Schema(English)](./schema/app_chat.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.3/web/app/components/develop/template)
- [x] POST /chat-messages - 发送对话消息
- [x] POST /files/upload - 上传文件
- [x] POST /messages/{message_id}/feedbacks - 消息反馈
Expand All @@ -85,7 +85,7 @@
- [x] GET /info - 获取应用基本信息
- [x] GET /parameters - 获取应用参数

- 高级聊天应用: [OpenAPI Schema(中文)](./schema/app_advanced_chat.zh.yaml) | [OpenAPI Schema(English)](./schema/app_advanced_chat.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.2/web/app/components/develop/template)
- 高级聊天应用: [OpenAPI Schema(中文)](./schema/app_advanced_chat.zh.yaml) | [OpenAPI Schema(English)](./schema/app_advanced_chat.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.3/web/app/components/develop/template)
- [x] POST /audio-to-text - 语音转文字
- [x] POST /text-to-audio - 文字转语音
- [x] GET /apps/annotations - 获取标注列表
Expand All @@ -100,10 +100,10 @@
- [x] GET /info - 获取应用基本信息
- [x] GET /parameters - 获取应用参数(包含文字转语音设置)

- 文本生成应用: [OpenAPI Schema(中文)](./schema/app_generation.zh.yaml) | [OpenAPI Schema(English)](./schema/app_generation.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.2/web/app/components/develop/template)
- 文本生成应用: [OpenAPI Schema(中文)](./schema/app_generation.zh.yaml) | [OpenAPI Schema(English)](./schema/app_generation.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.3/web/app/components/develop/template)
- [x] POST /completion-messages - 发送消息

- 工作流应用: [OpenAPI Schema(中文)](./schema/app_workflow.zh.yaml) | [OpenAPI Schema(English)](./schema/app_workflow.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.2/web/app/components/develop/template)
- 工作流应用: [OpenAPI Schema(中文)](./schema/app_workflow.zh.yaml) | [OpenAPI Schema(English)](./schema/app_workflow.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.3/web/app/components/develop/template)
- [x] POST /workflows/run - 执行工作流
- [x] GET /workflows/run/{workflow_run_id} - 获取工作流执行状态
- [x] POST /workflows/tasks/{task_id}/stop - 停止响应
Expand Down
2 changes: 1 addition & 1 deletion libs/dify
Submodule dify updated 94 files
+28 −0 .github/workflows/deploy-rag-dev.yml
+1 −0 .github/workflows/expose_service_ports.sh
+13 −3 .github/workflows/vdb-tests.yml
+2 −1 api/commands.py
+1 −1 api/configs/packaging/__init__.py
+7 −1 api/controllers/service_api/app/app.py
+17 −4 api/core/app/apps/base_app_runner.py
+18 −0 api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py
+17 −16 api/core/rag/datasource/vdb/oceanbase/oceanbase_vector.py
+3 −3 api/core/repositories/sqlalchemy_workflow_execution_repository.py
+0 −9 api/core/workflow/nodes/event/event.py
+0 −4 api/factories/variable_factory.py
+0 −2 api/services/errors/__init__.py
+0 −4 api/services/errors/account.py
+0 −5 api/services/errors/completion.py
+3 −3 api/services/tools/builtin_tools_manage_service.py
+2 −2 api/tasks/retry_document_indexing_task.py
+49 −0 api/tests/integration_tests/vdb/oceanbase/check_oceanbase_ready.py
+5 −34 api/tests/integration_tests/vdb/oceanbase/test_oceanbase.py
+1 −0 docker/.env.example
+6 −7 docker/docker-compose-template.yaml
+1 −0 docker/docker-compose.middleware.yaml
+7 −7 docker/docker-compose.yaml
+1 −0 docker/middleware.env.example
+3 −8 web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx
+14 −0 web/app/(commonLayout)/datasets/layout.tsx
+4 −7 web/app/components/app/configuration/config-prompt/conversation-history/history-panel.tsx
+3 −1 web/app/components/app/configuration/dataset-config/settings-modal/index.tsx
+3 −5 web/app/components/app/configuration/prompt-mode/advanced-mode-waring.tsx
+16 −5 web/app/components/app/create-app-modal/index.tsx
+2 −1 web/app/components/app/log/list.tsx
+3 −8 web/app/components/app/overview/customize/index.tsx
+7 −5 web/app/components/app/overview/settings/index.tsx
+3 −5 web/app/components/base/features/new-feature-panel/index.tsx
+1 −1 web/app/components/base/markdown-blocks/button.tsx
+5 −1 web/app/components/datasets/create/step-two/index.tsx
+3 −1 web/app/components/datasets/create/website/base/url-input.tsx
+3 −1 web/app/components/datasets/create/website/jina-reader/base/url-input.tsx
+3 −8 web/app/components/datasets/documents/index.tsx
+3 −1 web/app/components/datasets/external-api/external-api-modal/Form.tsx
+4 −1 web/app/components/datasets/external-api/external-api-panel/index.tsx
+7 −2 web/app/components/datasets/external-knowledge-base/create/InfoPanel.tsx
+3 −1 web/app/components/datasets/external-knowledge-base/create/index.tsx
+6 −1 web/app/components/datasets/hit-testing/modify-retrieval-modal.tsx
+12 −1 web/app/components/datasets/settings/form/index.tsx
+9 −5 web/app/components/develop/template/template.en.mdx
+7 −3 web/app/components/develop/template/template.ja.mdx
+6 −2 web/app/components/develop/template/template.zh.mdx
+9 −5 web/app/components/develop/template/template_advanced_chat.en.mdx
+8 −4 web/app/components/develop/template/template_advanced_chat.ja.mdx
+5 −3 web/app/components/develop/template/template_advanced_chat.zh.mdx
+7 −3 web/app/components/develop/template/template_chat.en.mdx
+7 −3 web/app/components/develop/template/template_chat.ja.mdx
+9 −5 web/app/components/develop/template/template_chat.zh.mdx
+9 −3 web/app/components/develop/template/template_workflow.en.mdx
+7 −3 web/app/components/develop/template/template_workflow.ja.mdx
+8 −4 web/app/components/develop/template/template_workflow.zh.mdx
+3 −3 web/app/components/header/account-dropdown/index.tsx
+3 −5 web/app/components/plugins/plugin-detail-panel/endpoint-list.tsx
+5 −3 web/app/components/tools/provider/custom-create-card.tsx
+7 −9 web/app/components/workflow/nodes/_base/components/agent-strategy.tsx
+5 −1 web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx
+3 −1 web/app/components/workflow/nodes/_base/components/error-handle/fail-branch-card.tsx
+8 −5 web/app/components/workflow/nodes/_base/components/variable/var-reference-popup.tsx
+3 −5 web/app/components/workflow/nodes/_base/hooks/use-node-help-link.ts
+3 −3 web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx
+10 −6 web/app/components/workflow/panel/chat-variable-panel/index.tsx
+3 −1 web/app/components/workflow/run/node.tsx
+3 −1 web/app/components/workflow/run/status.tsx
+3 −13 web/app/education-apply/education-apply-page.tsx
+6 −13 web/app/education-apply/verify-state-modal.tsx
+3 −1 web/app/install/installForm.tsx
+4 −2 web/app/signin/invite-settings/page.tsx
+3 −1 web/app/signin/oneMoreStep.tsx
+13 −5 web/context/i18n.ts
+19 −19 web/i18n/de-DE/workflow.ts
+19 −19 web/i18n/en-US/workflow.ts
+19 −19 web/i18n/es-ES/workflow.ts
+19 −19 web/i18n/fa-IR/workflow.ts
+19 −19 web/i18n/fr-FR/workflow.ts
+19 −19 web/i18n/hi-IN/workflow.ts
+19 −19 web/i18n/it-IT/workflow.ts
+3 −3 web/i18n/ja-JP/education.ts
+18 −19 web/i18n/ko-KR/workflow.ts
+19 −19 web/i18n/pl-PL/workflow.ts
+19 −19 web/i18n/pt-BR/workflow.ts
+18 −19 web/i18n/ro-RO/workflow.ts
+19 −19 web/i18n/ru-RU/workflow.ts
+582 −1,025 web/i18n/sl-SI/workflow.ts
+19 −19 web/i18n/th-TH/workflow.ts
+19 −19 web/i18n/tr-TR/workflow.ts
+19 −19 web/i18n/uk-UA/workflow.ts
+19 −19 web/i18n/vi-VN/workflow.ts
+1 −1 web/package.json
177 changes: 177 additions & 0 deletions misc/official_api_doc_changes/1.4.2__1.4.3.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
diff --git a/web/app/components/develop/template/template.zh.mdx b/web/app/components/develop/template/template.zh.mdx
index 9e65a4bd9..4af5a2805 100755
--- 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'

### Request Body
- `user` (string) Required
- 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。
+ 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。API 无法访问 WebApp 创建的会话。
### Response
- `result` (string) 固定返回 success
</Col>
@@ -485,6 +485,8 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
- `name` (string) 应用名称
- `description` (string) 应用描述
- `tags` (array[string]) 应用标签
+ - `mode` (string) 应用模式
+ - 'author_name' (string) 作者名称
</Col>
<Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
@@ -501,7 +503,9 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
"tags": [
"tag1",
"tag2"
- ]
+ ],
+ "mode": "chat",
+ "author_name": "Dify"
}
```
</CodeGroup>
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 3e268d6e6..fa3ad3f37 100755
--- a/web/app/components/develop/template/template_advanced_chat.zh.mdx
+++ b/web/app/components/develop/template/template_advanced_chat.zh.mdx
@@ -56,7 +56,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
</Property>
<Property name='user' type='string' key='user'>
用户标识,用于定义终端用户的身份,方便检索、统计。
- 由开发者定义规则,需保证用户标识在应用内唯一。
+ 由开发者定义规则,需保证用户标识在应用内唯一。服务 API 不会共享 WebApp 创建的对话。
</Property>
<Property name='conversation_id' type='string' key='conversation_id'>
(选填)会话 ID,需要基于之前的聊天记录继续对话,必须传之前消息的 conversation_id。
@@ -402,7 +402,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'

### Request Body
- `user` (string) Required
- 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。
+ 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。API 无法访问 WebApp 创建的会话。
### Response
- `result` (string) 固定返回 success
</Col>
@@ -1173,7 +1173,9 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
"tags": [
"tag1",
"tag2"
- ]
+ ],
+ "mode": "advanced-chat",
+ "author_name": "Dify"
}
```
</CodeGroup>
diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx
index 9c1a168bf..325470ac6 100644
--- a/web/app/components/develop/template/template_chat.zh.mdx
+++ b/web/app/components/develop/template/template_chat.zh.mdx
@@ -56,7 +56,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
</Property>
<Property name='user' type='string' key='user'>
用户标识,用于定义终端用户的身份,方便检索、统计。
- 由开发者定义规则,需保证用户标识在应用内唯一。
+ 由开发者定义规则,需保证用户标识在应用内唯一。服务 API 不会共享 WebApp 创建的对话。
</Property>
<Property name='conversation_id' type='string' key='conversation_id'>
(选填)会话 ID,需要基于之前的聊天记录继续对话,必须传之前消息的 conversation_id。
@@ -306,7 +306,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
要上传的文件。
</Property>
<Property name='user' type='string' key='user'>
- 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。
+ 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。服务 API 不会共享 WebApp 创建的对话。
</Property>
</Properties>

@@ -373,7 +373,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'

### Request Body
- `user` (string) Required
- 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。
+ 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。API 无法访问 WebApp 创建的会话。
### Response
- `result` (string) 固定返回 success
</Col>
@@ -425,7 +425,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
点赞 like, 点踩 dislike, 撤销点赞 null
</Property>
<Property name='user' type='string' key='user'>
- 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
+ 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。服务 API 不会共享 WebApp 创建的对话。
</Property>
<Property name='content' type='string' key='content'>
消息反馈的具体信息。
@@ -1162,6 +1162,8 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
- `name` (string) 应用名称
- `description` (string) 应用描述
- `tags` (array[string]) 应用标签
+ - `mode` (string) 应用模式
+ - 'author_name' (string) 作者名称
</Col>
<Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
@@ -1178,7 +1180,9 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
"tags": [
"tag1",
"tag2"
- ]
+ ],
+ "mode": "chat",
+ "author_name": "Dify"
}
```
</CodeGroup>
diff --git a/web/app/components/develop/template/template_workflow.zh.mdx b/web/app/components/develop/template/template_workflow.zh.mdx
index fe59988ed..d599cb503 100644
--- a/web/app/components/develop/template/template_workflow.zh.mdx
+++ b/web/app/components/develop/template/template_workflow.zh.mdx
@@ -59,7 +59,7 @@ Workflow 应用无会话支持,适合用于翻译/文章写作/总结 AI 等
<i>由于 Cloudflare 限制,请求会在 100 秒超时无返回后中断。</i>
- `user` (string) Required
用户标识,用于定义终端用户的身份,方便检索、统计。
- 由开发者定义规则,需保证用户标识在应用内唯一。
+ 由开发者定义规则,需保证用户标识在应用内唯一。API 无法访问 WebApp 创建的会话。


### Response
@@ -394,7 +394,7 @@ Workflow 应用无会话支持,适合用于翻译/文章写作/总结 AI 等
- `task_id` (string) 任务 ID,可在流式返回 Chunk 中获取
### Request Body
- `user` (string) Required
- 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。
+ 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。API 无法访问 WebApp 创建的会话。
### Response
- `result` (string) 固定返回 "success"
</Col>
@@ -443,7 +443,7 @@ Workflow 应用无会话支持,适合用于翻译/文章写作/总结 AI 等
要上传的文件。
</Property>
<Property name='user' type='string' key='user'>
- 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。
+ 用户标识,用于定义终端用户的身份,必须和发送消息接口传入 user 保持一致。服务 API 不会共享 WebApp 创建的对话。
</Property>
</Properties>

@@ -615,6 +615,8 @@ Workflow 应用无会话支持,适合用于翻译/文章写作/总结 AI 等
- `name` (string) 应用名称
- `description` (string) 应用描述
- `tags` (array[string]) 应用标签
+ - `mode` (string) 应用模式
+ - 'author_name' (string) 作者名称
</Col>
<Col>
<CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}>
@@ -631,7 +633,9 @@ Workflow 应用无会话支持,适合用于翻译/文章写作/总结 AI 等
"tags": [
"tag1",
"tag2"
- ]
+ ],
+ "mode": "workflow",
+ "author_name": "Dify"
}
```
</CodeGroup>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dify-openapi"
version = "1.4.2"
version = "1.4.3"
description = "a client for testing and validating dify openapi schema"
readme = "README.md"
authors = [{ name = "straydragon", email = "straydragonl@foxmail.com" }]
Expand Down
10 changes: 8 additions & 2 deletions schema/app_advanced_chat.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ info:
Chat applications support session persistence, allowing previous chat history to be used as context for responses, suitable for chat/customer service AI, etc.
All API requests require an application-level API-Key in the Authorization HTTP Header.
It is strongly recommended that developers store the API-Key on the backend rather than sharing or storing it on the client side to prevent API-Key leakage and financial loss.
official raw document: https://github.com/langgenius/dify/blob/1.4.2/web/app/components/develop/template/template_advanced_chat.en.mdx
version: 1.4.2
official raw document: https://github.com/langgenius/dify/blob/1.4.3/web/app/components/develop/template/template_advanced_chat.en.mdx
version: 1.4.3
servers:
- url: 'https://api.dify.ai/v1'
description: Dify API Server
Expand Down Expand Up @@ -544,6 +544,12 @@ paths:
items:
type: string
description: Application tags
mode:
type: string
description: Application mode
author_name:
type: string
description: Author name
/parameters:
get:
operationId: getApplicationParametersByAppAdvancedChat
Expand Down
Loading