Apply patch [skip ci]

This commit is contained in:
open-swe[bot]
2025-08-06 17:03:28 +00:00
parent d9de7811cc
commit cd0a52de2e

View File

@@ -191,11 +191,11 @@ class TestGptOssToolCallingIntegration:
llm_with_tools = llm.bind_tools([get_weather])
# Stream a response
chunks = []
for chunk in llm_with_tools.stream(
"What's the weather in Tokyo? Use the weather tool."
):
chunks.append(chunk)
chunks = list(
llm_with_tools.stream(
"What's the weather in Tokyo? Use the weather tool."
)
)
# Should have received chunks
assert len(chunks) > 0
@@ -359,3 +359,4 @@ class TestGptOssErrorHandling:
# Should have no tool calls
assert not response.tool_calls or len(response.tool_calls) == 0