fix(litellm): function-calling check blocks all calls on non-tool models (#5536)

This commit is contained in:
Hrushikesh Yadav
2026-06-15 15:59:46 +05:30
committed by GitHub
parent 66c4394b40
commit 09a9e34382
2 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ class LiteLLM(LLMBase):
Returns:
str: The generated response.
"""
if not litellm.supports_function_calling(self.config.model):
if tools and not litellm.supports_function_calling(self.config.model):
raise ValueError(f"Model '{self.config.model}' in litellm does not support function calling.")
params = {