Skip to content

Commit

Permalink
disable parameter validation (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
wj-Mcat authored Jan 26, 2024
1 parent 08e017f commit 87f4a46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erniebot-agent/src/erniebot_agent/tools/remote_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ async def __pre_process__(self, tool_arguments: Dict[str, Any]) -> dict:
tool_arguments = await parse_json_request(
self.tool_view.parameters, tool_arguments, file_manager
)
tool_arguments = self.tool_view.parameters(**tool_arguments).model_dump(mode="json")
# disable: parameter validation
# tool_arguments = self.tool_view.parameters(**tool_arguments).model_dump(mode="json")

return tool_arguments

Expand Down

0 comments on commit 87f4a46

Please sign in to comment.