fix(litellm): function-calling check blocks all calls on non-tool models (#5536)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user