mirror of
https://github.com/hwchase17/langchain.git
synced 2026-05-19 14:20:55 +00:00
Apply patch [skip ci]
This commit is contained in:
@@ -879,6 +879,9 @@ class ChatOllama(BaseChatModel):
|
||||
**kwargs: Any,
|
||||
) -> AsyncIterator[Union[Mapping[str, Any], str]]:
|
||||
chat_params = self._chat_params(messages, stop, **kwargs)
|
||||
|
||||
# Remove internal _harmony_format parameter before calling Ollama client
|
||||
chat_params.pop("_harmony_format", None)
|
||||
|
||||
if chat_params["stream"]:
|
||||
async for part in await self._async_client.chat(**chat_params):
|
||||
@@ -1572,3 +1575,4 @@ class ChatOllama(BaseChatModel):
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user