mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 15:04:13 +00:00
fix: update import paths for ChatOllama to use langchain_ollama instead of community (#31721)
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user