mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-10 07:38:59 +08:00
Remove the processing of single quote when testing API tools. (#11390)
This commit is contained in:
parent
9e23c3d625
commit
28231d39a4
@ -270,9 +270,6 @@ class ApiTool(Tool):
|
||||
elif property["type"] == "object" or property["type"] == "array":
|
||||
if isinstance(value, str):
|
||||
try:
|
||||
# an array str like '[1,2]' also can convert to list [1,2] through json.loads
|
||||
# json not support single quote, but we can support it
|
||||
value = value.replace("'", '"')
|
||||
return json.loads(value)
|
||||
except ValueError:
|
||||
return value
|
||||
|
Loading…
x
Reference in New Issue
Block a user