Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-06 16:55:58 +00:00
parent 0cebb8514b
commit 4abc2319c0

View File

@@ -400,6 +400,16 @@ class ChatOllama(BaseChatModel):
See full list of supported init args and their descriptions in the params section.
.. note::
**GPT-OSS Model Support**: This integration includes special support for gpt-oss
models (e.g., ``gpt-oss:20b``, ``gpt-oss:7b``) which use the Harmony response format.
When using gpt-oss models with tools, the integration automatically converts tool
definitions to the Harmony format, ensuring compatibility. Tool parameter types are
properly formatted as strings rather than arrays to avoid template parsing errors.
If you encounter issues with tool calling on gpt-oss models, ensure you're using
the latest version of this integration which includes Harmony format support.
Instantiate:
.. code-block:: python
@@ -1576,3 +1586,4 @@ class ChatOllama(BaseChatModel):