[Bugfix] Reject empty tools array with HTTP 400 (#39780)

Signed-off-by: Jigang Zhou <zjg0907008@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
jigangz
2026-04-16 12:08:04 +08:00
committed by GitHub
co-authored by Claude
parent c0722f22de
commit 18013df6ae
4 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -484,7 +484,7 @@ def test_extract_tool_calls_streaming_incremental(
expected_content,
):
"""Verify the XLAM Parser streaming behavior by verifying each chunk is as expected.""" # noqa: E501
request = ChatCompletionRequest(model=MODEL, messages=[], tools=[])
request = ChatCompletionRequest(model=MODEL, messages=[])
chunks = []
for delta_message in stream_delta_message_generator(