Skip to content

Commit

Permalink
remove function calling title parameter that gemini doesn't support
Browse files Browse the repository at this point in the history
  • Loading branch information
aantn committed Jun 24, 2024
1 parent 41140b5 commit 4bbcb53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holmes/core/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def get_openai_format(self):
tool_properties = {}
for param_name, param_attributes in self.parameters.items():
tool_properties[param_name] = { "type": param_attributes.type }
if param_attributes.title is not None:
tool_properties[param_name]["title"] = param_attributes.title
#if param_attributes.title is not None:
# tool_properties[param_name]["title"] = param_attributes.title
if param_attributes.description is not None:
tool_properties[param_name]["description"] = param_attributes.description

Expand Down

0 comments on commit 4bbcb53

Please sign in to comment.