From e72153629d3df67264fc8ae05fceb3533c304cde Mon Sep 17 00:00:00 2001 From: Chase Date: Mon, 12 May 2025 16:21:51 -0700 Subject: [PATCH] fix #8424: change native_tool_calling semantics (#8463) --- openhands/llm/llm.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/openhands/llm/llm.py b/openhands/llm/llm.py index a9b2ece4e7..180448ad22 100644 --- a/openhands/llm/llm.py +++ b/openhands/llm/llm.py @@ -491,13 +491,8 @@ class LLM(RetryMixin, DebugMixin): # Handle native_tool_calling user-defined configuration if self.config.native_tool_calling is None: self._function_calling_active = model_name_supported - elif self.config.native_tool_calling is False: - self._function_calling_active = False else: - # try to enable native tool calling if supported by the model - self._function_calling_active = litellm.supports_function_calling( - model=self.config.model - ) + self._function_calling_active = self.config.native_tool_calling def vision_is_active(self) -> bool: with warnings.catch_warnings():