Skip to content

Commit

Permalink
Update crab/agents/backend_models/gemini_model.py
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Jin <[email protected]>
  • Loading branch information
dandansamax and WHALEEYE authored Sep 18, 2024
1 parent fb1af78 commit f61213c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crab/agents/backend_models/gemini_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def _convert_action_to_schema(action_space: list[Action] | None) -> list[Tool] |
return actions


def _clear_schema(schema_dict: dict):
def _clear_schema(schema_dict: dict) -> None:
schema_dict.pop("title", None)
p_type = schema_dict.pop("type", None)
for prop in schema_dict.get("properties", {}).values():
Expand Down

0 comments on commit f61213c

Please sign in to comment.