Explorar el Código

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

zhuhao hace 5 meses
padre
commit
8bb5b943d7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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