From 5247b5e9a19ff7b01a15b4d2b1b60971f2d237ce Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Wed, 6 Aug 2025 16:46:01 +0000 Subject: [PATCH] Apply patch [skip ci] --- .../ollama/tests/unit_tests/test_chat_models_gpt_oss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/partners/ollama/tests/unit_tests/test_chat_models_gpt_oss.py b/libs/partners/ollama/tests/unit_tests/test_chat_models_gpt_oss.py index 60de0091979..e43cffdeb04 100644 --- a/libs/partners/ollama/tests/unit_tests/test_chat_models_gpt_oss.py +++ b/libs/partners/ollama/tests/unit_tests/test_chat_models_gpt_oss.py @@ -383,8 +383,7 @@ class TestGptOssIntegration: class TestChatParamsWithGptOss: """Test _chat_params method with gpt-oss models.""" - @patch("langchain_ollama.chat_models.ChatOllama._create_chat") - def test_chat_params_with_harmony_tools(self, mock_create_chat: MagicMock) -> None: + def test_chat_params_with_harmony_tools(self) -> None: """Test that _chat_params correctly formats tools for gpt-oss.""" llm = ChatOllama(model="gpt-oss:20b") llm_with_tools = llm.bind_tools([get_weather]) @@ -410,3 +409,4 @@ class TestChatParamsWithGptOss: assert isinstance(prop["type"], str) +