Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-06 16:46:01 +00:00
parent 34a8fc0cd1
commit 5247b5e9a1

View File

@@ -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)