Browse Source

fix(tools): remove the undefined variable parameter_type (#9908)

zhuhao 5 months ago
parent
commit
8bb5b943d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/core/tools/entities/tool_entities.py

+ 1 - 1
api/core/tools/entities/tool_entities.py

@@ -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