File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -944,12 +944,11 @@ async def make_ldp_agent(
944
944
raise NotImplementedError (f"Didn't yet handle agent type { agent_type } ." )
945
945
946
946
def adjust_tools_for_agent_llm (self , tools : list [Tool ]) -> None :
947
- # Google gemini/gemini-1.5-flash fails to support empty dict properties
948
- # SEE: https://github.com/BerriAI/litellm/issues/7634
949
- if "gemini" in self .agent .agent_llm .lower ():
950
- for t in tools :
951
- if not t .info .get_properties ():
952
- t .info .parameters = None
947
+ """In-place adjust tool attributes or schemae to match agent LLM-specifics."""
948
+ # This was originally made for Gemini 1.5 Flash not supporting empty tool args
949
+ # in February 2025 (https://github.com/BerriAI/litellm/issues/7634), but then
950
+ # Gemini fixed this server-side by mid-April 2025,
951
+ # so this method is now just available for use
953
952
954
953
955
954
# Settings: already Settings
You can’t perform that action at this time.
0 commit comments