mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 03:07:59 +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)
|
||||
|
||||
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):
|
||||
SCHEMA = "schema" # should be set while adding tool
|
||||
|
Loading…
Reference in New Issue
Block a user