mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-30 00:45:10 +08:00
chore(fix): Invalid quotes for using Array[String] in HTTP request node as JSON body (#12761)
This commit is contained in:
parent
9aaee8ee47
commit
6fad719e42
@ -134,6 +134,10 @@ class ArrayStringSegment(ArraySegment):
|
|||||||
value_type: SegmentType = SegmentType.ARRAY_STRING
|
value_type: SegmentType = SegmentType.ARRAY_STRING
|
||||||
value: Sequence[str]
|
value: Sequence[str]
|
||||||
|
|
||||||
|
@property
|
||||||
|
def text(self) -> str:
|
||||||
|
return json.dumps(self.value)
|
||||||
|
|
||||||
|
|
||||||
class ArrayNumberSegment(ArraySegment):
|
class ArrayNumberSegment(ArraySegment):
|
||||||
value_type: SegmentType = SegmentType.ARRAY_NUMBER
|
value_type: SegmentType = SegmentType.ARRAY_NUMBER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user