From 694bbb14cd1bb61ccebedc04e9e54e2f2fbb1b65 Mon Sep 17 00:00:00 2001 From: shroominic <34897716+shroominic@users.noreply.github.com> Date: Thu, 28 Dec 2023 18:56:55 +0100 Subject: [PATCH] community: fix typo in async ollama chat (#15276) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made a stupid typo in the last PR which got already merged😅 --- libs/community/langchain_community/chat_models/ollama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: