diff --git a/libs/community/langchain_community/chat_models/ollama.py b/libs/community/langchain_community/chat_models/ollama.py index d9ad14a26e3..e0327e7e50c 100644 --- a/libs/community/langchain_community/chat_models/ollama.py +++ b/libs/community/langchain_community/chat_models/ollama.py @@ -325,7 +325,7 @@ class ChatOllama(BaseChatModel, _OllamaCommon): **kwargs: Any, ) -> AsyncIterator[ChatGenerationChunk]: try: - async for stream_resp in self._create_async_chat_stream( + async for stream_resp in self._acreate_chat_stream( messages, stop, **kwargs ): if stream_resp: