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.

fix: metadata in generate npe issue (#3166)

takatost9720d6b7a5c2
diff --git a/api/core/app/entities/task_entities.py b/api/core/app/entities/task_entities.py
index 5de8793cfb7..64af4bf8c60 100644
--- a/api/core/app/entities/task_entities.py
+++ b/api/core/app/entities/task_entities.py
@@ -122,7 +122,7 @@ class MessageEndStreamResponse(StreamResponse):
"""
event: StreamEvent = StreamEvent.MESSAGE_END
id: str
- metadata: Optional[dict] = None
+ metadata: dict = {}
class MessageFileStreamResponse(StreamResponse):