From 8bb5b943d7aa50c0adad5d0a9e7b0049da48b568 Mon Sep 17 00:00:00 2001 From: zhuhao <37029601+hwzhuhao@users.noreply.github.com> Date: Sun, 27 Oct 2024 11:56:29 +0800 Subject: [PATCH] fix(tools): remove the undefined variable parameter_type (#9908) --- api/core/tools/entities/tool_entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/tools/entities/tool_entities.py b/api/core/tools/entities/tool_entities.py index 9a31e673d3052..d8637fd2cb0c5 100644 --- a/api/core/tools/entities/tool_entities.py +++ b/api/core/tools/entities/tool_entities.py @@ -204,7 +204,7 @@ def cast_value(self, value: Any, /): 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