mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-11 19:09:02 +08:00
fix(tools): remove the undefined variable parameter_type (#9908)
This commit is contained in:
parent
22776f24ab
commit
8bb5b943d7
@ -204,7 +204,7 @@ class ToolParameter(BaseModel):
|
|||||||
return str(value)
|
return str(value)
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
raise ValueError(f"The tool parameter value {value} is not in correct type of {parameter_type}.")
|
raise ValueError(f"The tool parameter value {value} is not in correct type.")
|
||||||
|
|
||||||
class ToolParameterForm(Enum):
|
class ToolParameterForm(Enum):
|
||||||
SCHEMA = "schema" # should be set while adding tool
|
SCHEMA = "schema" # should be set while adding tool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user