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(segments): return empty string instead of "null" for text, log, and markdown properties (#9651)

-LAN-5267f34e76d2
diff --git a/api/core/variables/segments.py b/api/core/variables/segments.py
index 782798411ef..b71882b043e 100644
--- a/api/core/variables/segments.py
+++ b/api/core/variables/segments.py
@@ -56,15 +56,15 @@ class NoneSegment(Segment):
@property
def text(self) -> str:
- return "null"
+ return ""
@property
def log(self) -> str:
- return "null"
+ return ""
@property
def markdown(self) -> str:
- return "null"
+ return ""
class StringSegment(Segment):