mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-28 22:14:18 +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)
|
chat_params = self._chat_params(messages, stop, **kwargs)
|
||||||
|
|
||||||
if chat_params["stream"]:
|
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):
|
if not isinstance(part, str):
|
||||||
# Skip empty load responses
|
# Skip empty load responses
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user