Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-06 17:06:15 +00:00
parent 5e29845777
commit bc40197d86

View File

@@ -128,8 +128,8 @@ class TestGptOssToolCallingIntegration:
# Test that tools are properly bound
assert hasattr(llm_with_tools, "kwargs")
assert "tools" in llm_with_tools.kwargs
tools = llm_with_tools.kwargs["tools"]
assert "tools" in llm_with_tools.kwargs # type: ignore[attr-defined]
tools = llm_with_tools.kwargs["tools"] # type: ignore[attr-defined]
assert len(tools) == 3
# Verify tool names
@@ -357,3 +357,4 @@ class TestGptOssErrorHandling:
# Should have no tool calls
assert not response.tool_calls or len(response.tool_calls) == 0