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 duplicate code, lines 8 to 27, same as lines 29 & 45 to 62. (#13659)

jiangbo721c398c9cb6a6d
diff --git a/api/fields/message_fields.py b/api/fields/message_fields.py
index 0571faab08c..76e61f07079 100644
--- a/api/fields/message_fields.py
+++ b/api/fields/message_fields.py
@@ -7,27 +7,6 @@ from .raws import FilesContainedField
feedback_fields = {"rating": fields.String}
-retriever_resource_fields = {
- "id": fields.String,
- "message_id": fields.String,
- "position": fields.Integer,
- "dataset_id": fields.String,
- "dataset_name": fields.String,
- "document_id": fields.String,
- "document_name": fields.String,
- "data_source_type": fields.String,
- "segment_id": fields.String,
- "score": fields.Float,
- "hit_count": fields.Integer,
- "word_count": fields.Integer,
- "segment_position": fields.Integer,
- "index_node_hash": fields.String,
- "content": fields.String,
- "created_at": TimestampField,
-}
-
-feedback_fields = {"rating": fields.String}
-
agent_thought_fields = {
"id": fields.String,
"chain_id": fields.String,