mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
fix: parameter type handling in API tool and parser (#2574)
This commit is contained in:
1 parent
07fbeb6cf0
commit
ac96d192a6
2 files changed
+43
-6
No files matched your search
@@ -200,7 +200,7 @@ class ApiTool(Tool):
|
||||
|
||||
# replace path parameters
|
||||
for name, value in path_params.items():
|
||||
url = url.replace(f'{{{name}}}', value)
|
||||
url = url.replace(f'{{{name}}}', f'{value}')
|
||||
|
||||
# parse http body data if needed, for GET/HEAD/OPTIONS/TRACE, the body is ignored
|
||||
if 'Content-Type' in headers:
|
||||
|
||||
Reference in new issue
Block a user