[Fix] Align OpenAI vllm_xargs value types across request schemas (#48252)
Signed-off-by: Sage Ahrac <sagiahrak@gmail.com> Signed-off-by: Sage <80211083+sagearc@users.noreply.github.com>
Sage committed
Jul 15, 2026 at 20:48 UTC
43cd340247f442cfccaa8bef24c0867493af8e7b
2 files changed
+4
-4
vllm/entrypoints/openai/completion/protocol.py
+2
-2
@@ -209,10 +209,10 @@ class CompletionRequest(OpenAIBaseModel):
209
),
210
)
211
212
- vllm_xargs: dict[str, str | int | float] | None = Field(
212
+ vllm_xargs: dict[str, str | int | float | list[str | int | float]] | None = Field(
213
default=None,
214
description=(
215
- "Additional request parameters with string or "
215
+ "Additional request parameters with (list of) string or "
216
"numeric values, used by custom extensions."
217
),
218
)
vllm/entrypoints/speech_to_text/transcription/protocol.py
+2
-2
@@ -116,10 +116,10 @@ class TranscriptionRequest(OpenAIBaseModel):
116
stream_include_usage: bool | None = False
117
stream_continuous_usage_stats: bool | None = False
118
119
- vllm_xargs: dict[str, str | int | float | bool] | None = Field(
119
+ vllm_xargs: dict[str, str | int | float | list[str | int | float]] | None = Field(
120
default=None,
121
description=(
122
- "Additional request parameters with string or "
122
+ "Additional request parameters with (list of) string or "
123
"numeric values, used by custom extensions."
124
),
125
)