Explorar el Código

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

tags/0.10.2
zhuhao hace 1 año
padre
commit
8bb5b943d7
No account linked to committer's email address
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 Ver fichero

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

Cargando…
Cancelar
Guardar