[MINOR]support ChatOllama from langchain_ollama (#2158)

Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com>
This commit is contained in:
Shivtej Narake
2025-02-26 01:49:36 +05:30
committed by Brandon Hancock
parent 5db512bef6
commit 940f0647a9

View File

@@ -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)
)