Skip to content

Commit

Permalink
fix(tools): remove the undefined variable parameter_type (langgenius#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hwzhuhao authored Oct 27, 2024
1 parent 22776f2 commit 8bb5b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/tools/entities/tool_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bb5b94

Please sign in to comment.