[ROCm][CI] Stabilize 400 error return code for invalid schema inputs (#43016)

Signed-off-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
Andreas Karatzas
2026-05-24 10:06:49 +00:00
committed by GitHub
parent 357fddf614
commit 5940590855
11 changed files with 74 additions and 20 deletions
@@ -909,7 +909,9 @@ class BatchChatCompletionRequest(OpenAIBaseModel):
- The ``n`` parameter must be 1 (or omitted).
"""
messages: list[list[ChatCompletionMessageParam]] = Field(..., min_length=1)
messages: list[Annotated[list[ChatCompletionMessageParam], Field(min_length=1)]] = (
Field(..., min_length=1)
)
model: str | None = None
# Shared sampling / generation fields — mirror ChatCompletionRequest.