Skip to content

armgit / dify

Public Imported from GitHub
0

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.

Chore: remove unused fields (#15764)

Yongtao Huang433374abea1a
diff --git a/api/fields/external_dataset_fields.py b/api/fields/external_dataset_fields.py
deleted file mode 100644
index 9cc4e14a057..00000000000
--- a/api/fields/external_dataset_fields.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from flask_restful import fields # type: ignore
-
-from libs.helper import TimestampField
-
-external_knowledge_api_query_detail_fields = {
- "id": fields.String,
- "name": fields.String,
- "setting": fields.String,
- "created_by": fields.String,
- "created_at": TimestampField,
-}
diff --git a/api/fields/segment_fields.py b/api/fields/segment_fields.py
index aaac31cf401..82311e5bb9f 100644
--- a/api/fields/segment_fields.py
+++ b/api/fields/segment_fields.py
@@ -40,9 +40,3 @@ segment_fields = {
"stopped_at": TimestampField,
"child_chunks": fields.List(fields.Nested(child_chunk_fields)),
}
-
-segment_list_response = {
- "data": fields.List(fields.Nested(segment_fields)),
- "has_more": fields.Boolean,
- "limit": fields.Integer,
-}