From 2c77a04a12a1aab26721ae51ccc42a4065cdf781 Mon Sep 17 00:00:00 2001 From: crStiv Date: Tue, 11 Feb 2025 02:24:01 +0100 Subject: [PATCH] Update llm.py --- src/crewai/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/llm.py b/src/crewai/llm.py index ada5c9bf3..93fc565f2 100644 --- a/src/crewai/llm.py +++ b/src/crewai/llm.py @@ -413,7 +413,7 @@ class LLM: def supports_function_calling(self) -> bool: try: params = get_supported_openai_params(model=self.model) - return "response_format" in params + return "tools" in params except Exception as e: logging.error(f"Failed to get supported params: {str(e)}") return False