fix: tool params not work as expected when develop a tool (#6550)
This commit is contained in:
@@ -53,7 +53,7 @@ class ToolParameterConverter:
|
||||
case ToolParameter.ToolParameterType.NUMBER:
|
||||
if isinstance(value, int) | isinstance(value, float):
|
||||
return value
|
||||
elif isinstance(value, str):
|
||||
elif isinstance(value, str) and value != '':
|
||||
if '.' in value:
|
||||
return float(value)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user