From 940f0647a9ea9ddc293bbf36cdd62360f6515586 Mon Sep 17 00:00:00 2001 From: Shivtej Narake <75938432+failedanswer@users.noreply.github.com> Date: Wed, 26 Feb 2025 01:49:36 +0530 Subject: [PATCH] [MINOR]support `ChatOllama` from `langchain_ollama` (#2158) Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com> --- src/crewai/utilities/llm_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crewai/utilities/llm_utils.py b/src/crewai/utilities/llm_utils.py index c774a71fb..4d34d789c 100644 --- a/src/crewai/utilities/llm_utils.py +++ b/src/crewai/utilities/llm_utils.py @@ -44,6 +44,7 @@ def create_llm( # Extract attributes with explicit types model = ( getattr(llm_value, "model_name", None) + or getattr(llm_value, "model", None) or getattr(llm_value, "deployment_name", None) or str(llm_value) )