fix: update import paths for ChatOllama to use langchain_ollama instead of community (#31721)

This commit is contained in:
Mason Daugherty
2025-06-24 16:19:31 -04:00
committed by GitHub
parent e09abf8170
commit 3c3320ae30
4 changed files with 7 additions and 7 deletions

View File

@@ -1505,7 +1505,7 @@ class Runnable(Generic[Input, Output], ABC):
.. code-block:: python
from langchain_community.chat_models import ChatOllama
from langchain_ollama import ChatOllama
from langchain_core.output_parsers import StrOutputParser
llm = ChatOllama(model='llama2')