mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-28 05:54:55 +00:00
add missing await
This commit is contained in:
parent
2f27d5b6f1
commit
8ac1509164
@ -593,7 +593,7 @@ class ChatOllama(BaseChatModel):
|
||||
chat_params = self._chat_params(messages, stop, **kwargs)
|
||||
|
||||
if chat_params["stream"]:
|
||||
async for part in self._async_client.chat(**chat_params): # type: ignore[attr-defined]
|
||||
async for part in await self._async_client.chat(**chat_params):
|
||||
if not isinstance(part, str):
|
||||
# Skip empty load responses
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user