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(fix): Invalid quotes for using Array[String] in HTTP request node as JSON body (#12761)

Bowen Liang6fad719e4205
diff --git a/api/core/variables/segments.py b/api/core/variables/segments.py
index 69bd5567a46..a9f5651692b 100644
--- a/api/core/variables/segments.py
+++ b/api/core/variables/segments.py
@@ -134,6 +134,10 @@ class ArrayStringSegment(ArraySegment):
value_type: SegmentType = SegmentType.ARRAY_STRING
value: Sequence[str]
+ @property
+ def text(self) -> str:
+ return json.dumps(self.value)
+
class ArrayNumberSegment(ArraySegment):
value_type: SegmentType = SegmentType.ARRAY_NUMBER