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
23 changes: 16 additions & 7 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.1-blue)](https://github.com/langgenius/dify)
[![Dify Version Support](https://img.shields.io/badge/Support_Dify_Version-1.4.2-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.1/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.2/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 All @@ -60,8 +60,17 @@ Provides OpenAPI Schema for [Dify](https://github.com/langgenius/dify) API, whic
- [x] DELETE /datasets/{dataset_id}/metadata/{metadata_id} - Delete metadata
- [x] POST /datasets/{dataset_id}/metadata/built-in/{action} - Enable/disable built-in metadata
- [x] POST /datasets/{dataset_id}/documents/metadata - Update document metadata

- 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.1/web/app/components/develop/template)
- [x] GET /datasets/{dataset_id}/documents/{document_id}/segments/{segment_id} - View document segment detail
- [x] POST /datasets/tags - Create knowledge base tag
- [x] GET /datasets/tags - Get knowledge base tags
- [x] PATCH /datasets/tags - Update knowledge base tag name
- [x] DELETE /datasets/tags - Delete knowledge base tag
- [x] POST /datasets/tags/binding - Bind dataset to tag
- [x] POST /datasets/tags/unbinding - Unbind dataset from tag
- [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)
- [x] POST /chat-messages - Send conversation message
- [x] POST /files/upload - Upload file
- [x] POST /messages/{message_id}/feedbacks - Message feedback
Expand All @@ -74,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.1/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.2/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 @@ -90,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.1/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.2/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.1/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.2/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
23 changes: 16 additions & 7 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.1-blue)](https://github.com/langgenius/dify)
[![Dify Version Support](https://img.shields.io/badge/Support_Dify_Version-1.4.2-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.1/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.2/web/app/(commonLayout)/datasets/template)
- [x] POST /datasets - 创建空知识库
- [x] POST /datasets/{dataset_id} - 更新知识库
- [x] GET /datasets/{dataset_id}/documents - 获取文档列表
Expand All @@ -62,8 +62,17 @@
- [x] DELETE /datasets/{dataset_id}/metadata/{metadata_id} - 删除元数据
- [x] POST /datasets/{dataset_id}/metadata/built-in/{action} - 启用/禁用内置元数据
- [x] POST /datasets/{dataset_id}/documents/metadata - 更新文档元数据

- 聊天应用: [OpenAPI Schema(中文)](./schema/app_chat.zh.yaml) | [OpenAPI Schema(English)](./schema/app_chat.en.yaml) | [官方文档源码](https://github.com/langgenius/dify/tree/1.4.1/web/app/components/develop/template)
- [x] GET /datasets/{dataset_id}/documents/{document_id}/segments/{segment_id} - 查看文档分段详情
- [x] POST /datasets/tags - 新增知识库类型标签
- [x] GET /datasets/tags - 获取知识库类型标签
- [x] PATCH /datasets/tags - 修改知识库类型标签名称
- [x] DELETE /datasets/tags - 删除知识库类型标签
- [x] POST /datasets/tags/binding - 绑定知识库到知识库类型标签
- [x] POST /datasets/tags/unbinding - 解绑知识库和知识库类型标签
- [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)
- [x] POST /chat-messages - 发送对话消息
- [x] POST /files/upload - 上传文件
- [x] POST /messages/{message_id}/feedbacks - 消息反馈
Expand All @@ -76,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.1/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.2/web/app/components/develop/template)
- [x] POST /audio-to-text - 语音转文字
- [x] POST /text-to-audio - 文字转语音
- [x] GET /apps/annotations - 获取标注列表
Expand All @@ -91,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.1/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.2/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.1/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.2/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 85 files
+1 −1 api/configs/packaging/__init__.py
+1 −1 api/controllers/console/app/annotation.py
+0 −3 api/controllers/console/auth/forgot_password.py
+1 −1 api/controllers/console/datasets/datasets_segments.py
+7 −0 api/controllers/console/explore/installed_app.py
+11 −0 api/controllers/console/wraps.py
+5 −5 api/controllers/inner_api/plugin/plugin.py
+14 −1 api/controllers/web/__init__.py
+23 −3 api/controllers/web/app.py
+147 −0 api/controllers/web/forgot_password.py
+13 −25 api/controllers/web/login.py
+134 −0 api/controllers/web/passport.py
+46 −10 api/controllers/web/wraps.py
+9 −0 api/core/ops/entities/config_entity.py
+1 −1 api/core/ops/ops_trace_manager.py
+12 −3 api/core/ops/weave_trace/weave_trace.py
+3 −5 api/core/plugin/backwards_invocation/base.py
+3 −3 api/core/plugin/backwards_invocation/model.py
+0 −1 api/core/rag/datasource/vdb/oracle/oraclevector.py
+1 −1 api/core/rag/embedding/cached_embedding.py
+1 −1 api/core/rag/index_processor/processor/qa_index_processor.py
+2 −2 api/core/rag/retrieval/router/multi_dataset_react_route.py
+0 −2 api/core/tools/utils/dataset_retriever/dataset_multi_retriever_tool.py
+4 −4 api/core/tools/utils/message_transformer.py
+9 −0 api/core/workflow/nodes/knowledge_retrieval/entities.py
+156 −0 api/core/workflow/nodes/llm/llm_utils.py
+28 −146 api/core/workflow/nodes/llm/node.py
+14 −6 api/core/workflow/nodes/parameter_extractor/parameter_extractor_node.py
+9 −0 api/core/workflow/nodes/question_classifier/entities.py
+6 −2 api/core/workflow/nodes/question_classifier/question_classifier_node.py
+3 −0 api/extensions/ext_login.py
+57 −1 api/libs/helper.py
+2 −0 api/mypy.ini
+3 −2 api/pyproject.toml
+12 −0 api/services/app_service.py
+25 −1 api/services/enterprise/enterprise_service.py
+69 −32 api/services/webapp_auth_service.py
+3 −2 api/tests/integration_tests/workflow/nodes/test_parameter_extractor.py
+20 −14 api/tests/unit_tests/core/workflow/nodes/llm/test_node.py
+2,240 −2,204 api/uv.lock
+1 −1 dev/mypy-check
+4 −4 docker/docker-compose-template.yaml
+1 −1 docker/docker-compose.middleware.yaml
+4 −4 docker/docker-compose.yaml
+8 −0 web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx
+1 −0 web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/type.ts
+6 −0 web/app/(shareLayout)/layout.tsx
+4 −2 web/app/(shareLayout)/webapp-signin/page.tsx
+4 −2 web/app/components/app/app-publisher/index.tsx
+1 −1 web/app/components/base/app-unavailable.tsx
+29 −3 web/app/components/base/chat/chat-with-history/index.tsx
+1 −1 web/app/components/base/chat/chat/chat-input-area/index.tsx
+27 −5 web/app/components/base/chat/embedded-chatbot/index.tsx
+2 −2 web/app/components/base/markdown-blocks/think-block.tsx
+15 −4 web/app/components/plugins/install-plugin/install-bundle/steps/install-multi.tsx
+1 −1 web/app/components/plugins/plugin-page/index.tsx
+20 −3 web/app/components/share/text-generation/index.tsx
+1 −17 web/app/components/share/utils.ts
+1 −1 web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx
+2 −2 web/app/components/workflow/nodes/llm/use-config.ts
+1 −1 web/app/components/workflow/types.ts
+1 −1 web/i18n/de-DE/plugin.ts
+1 −1 web/i18n/en-US/plugin.ts
+1 −1 web/i18n/es-ES/plugin.ts
+1 −1 web/i18n/fa-IR/plugin.ts
+1 −1 web/i18n/fr-FR/plugin.ts
+1 −0 web/i18n/fr-FR/workflow.ts
+1 −1 web/i18n/hi-IN/plugin.ts
+1 −1 web/i18n/it-IT/plugin.ts
+1 −1 web/i18n/ja-JP/plugin.ts
+1 −1 web/i18n/ko-KR/plugin.ts
+1 −1 web/i18n/pl-PL/plugin.ts
+1 −1 web/i18n/pt-BR/plugin.ts
+1 −1 web/i18n/ro-RO/plugin.ts
+1 −1 web/i18n/ru-RU/plugin.ts
+1 −1 web/i18n/sl-SI/plugin.ts
+1 −1 web/i18n/th-TH/plugin.ts
+1 −1 web/i18n/tr-TR/plugin.ts
+1 −1 web/i18n/uk-UA/plugin.ts
+1 −1 web/i18n/vi-VN/plugin.ts
+1 −1 web/i18n/zh-Hans/plugin.ts
+41 −41 web/i18n/zh-Hant/plugin.ts
+12 −12 web/i18n/zh-Hant/workflow.ts
+1 −1 web/package.json
+9 −5 web/service/base.ts
Loading