mirror of
https://github.com/hwchase17/langchain.git
synced 2026-05-19 05:58:58 +00:00
Apply patch [skip ci]
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user