mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 21:48:58 +08:00
fix(segments): return empty string instead of "null" for text, log, and markdown properties (#9651)
This commit is contained in:
parent
d6e8290a1c
commit
5267f34e76
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user