Эх сурвалжийг харах

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

zhuhao 6 сар өмнө
parent
commit
8bb5b943d7

+ 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