From 4fdd2e5579e5aec193f983cde25ead1bbeb61552 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Wed, 6 Aug 2025 16:59:05 +0000 Subject: [PATCH] Apply patch [skip ci] --- .../ollama/tests/integration_tests/test_gpt_oss_tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/partners/ollama/tests/integration_tests/test_gpt_oss_tools.py b/libs/partners/ollama/tests/integration_tests/test_gpt_oss_tools.py index b898fb3f3ee..7714460e592 100644 --- a/libs/partners/ollama/tests/integration_tests/test_gpt_oss_tools.py +++ b/libs/partners/ollama/tests/integration_tests/test_gpt_oss_tools.py @@ -318,8 +318,8 @@ class TestGptOssErrorHandling: # Create a tool that might cause parsing issues @tool def complex_tool( - data: Dict[str, Any], - nested: Optional[Dict[str, Any]] = None, + data: dict[str, Any], + nested: dict[str, Any] | None = None, ) -> str: """A complex tool with nested parameters. @@ -360,3 +360,4 @@ class TestGptOssErrorHandling: # Should have no tool calls assert not response.tool_calls or len(response.tool_calls) == 0 +