Apply patch [skip ci]

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

View File

@@ -258,7 +258,7 @@ class TestGptOssModelCompatibility:
llm_with_tools = llm.bind_tools([get_weather])
# Verify tools are in Harmony format
tools = llm_with_tools.kwargs["tools"]
tools = llm_with_tools.kwargs["tools"] # type: ignore[attr-defined]
assert len(tools) == 1
tool = tools[0]
assert tool["type"] == "function"
@@ -358,3 +358,4 @@ class TestGptOssErrorHandling:
# Should have no tool calls
assert not response.tool_calls or len(response.tool_calls) == 0