mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 01:29:01 +08:00
fix: add support for FILE type in ToolParameterConverter (#5578)
This commit is contained in:
parent
7c9e88dfb3
commit
45a3ea6fed
@ -58,7 +58,8 @@ class ToolParameterConverter:
|
|||||||
return float(value)
|
return float(value)
|
||||||
else:
|
else:
|
||||||
return int(value)
|
return int(value)
|
||||||
|
case ToolParameter.ToolParameterType.FILE:
|
||||||
|
return value
|
||||||
case _:
|
case _:
|
||||||
return str(value)
|
return str(value)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user