Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
02073280
Unverified
Commit
02073280
authored
Jan 09, 2026
by
Andreas Karatzas
Committed by
GitHub
Jan 09, 2026
Browse files
[Bugfix] Fix OpenAPI schema test failures (#31921)
Signed-off-by:
Andreas Karatzas
<
akaratza@amd.com
>
parent
dc77cb71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
tests/entrypoints/openai/test_openai_schema.py
tests/entrypoints/openai/test_openai_schema.py
+5
-1
vllm/entrypoints/openai/protocol.py
vllm/entrypoints/openai/protocol.py
+6
-2
No files found.
tests/entrypoints/openai/test_openai_schema.py
View file @
02073280
...
...
@@ -90,7 +90,10 @@ def before_generate_case(context: schemathesis.hooks.HookContext, strategy):
if
(
isinstance
(
content
,
list
)
and
len
(
content
)
>
0
and
any
(
item
.
get
(
"type"
)
==
"file"
for
item
in
content
)
and
any
(
isinstance
(
item
,
dict
)
and
item
.
get
(
"type"
)
==
"file"
for
item
in
content
)
):
return
False
...
...
@@ -139,6 +142,7 @@ def test_openapi_stateless(case: schemathesis.Case):
timeout
=
{
# requires a longer timeout
(
"POST"
,
"/v1/chat/completions"
):
LONG_TIMEOUT_SECONDS
,
(
"POST"
,
"/v1/completions"
):
LONG_TIMEOUT_SECONDS
,
}.
get
(
key
,
DEFAULT_TIMEOUT_SECONDS
)
# No need to verify SSL certificate for localhost
...
...
vllm/entrypoints/openai/protocol.py
View file @
02073280
...
...
@@ -577,7 +577,9 @@ class ChatCompletionRequest(OpenAIBaseModel):
min_tokens
:
int
=
0
skip_special_tokens
:
bool
=
True
spaces_between_special_tokens
:
bool
=
True
truncate_prompt_tokens
:
Annotated
[
int
,
Field
(
ge
=-
1
)]
|
None
=
None
truncate_prompt_tokens
:
Annotated
[
int
,
Field
(
ge
=-
1
,
le
=
_LONG_INFO
.
max
)]
|
None
=
(
None
)
prompt_logprobs
:
int
|
None
=
None
allowed_token_ids
:
list
[
int
]
|
None
=
None
bad_words
:
list
[
str
]
=
Field
(
default_factory
=
list
)
...
...
@@ -1058,7 +1060,9 @@ class CompletionRequest(OpenAIBaseModel):
min_tokens
:
int
=
0
skip_special_tokens
:
bool
=
True
spaces_between_special_tokens
:
bool
=
True
truncate_prompt_tokens
:
Annotated
[
int
,
Field
(
ge
=-
1
)]
|
None
=
None
truncate_prompt_tokens
:
Annotated
[
int
,
Field
(
ge
=-
1
,
le
=
_LONG_INFO
.
max
)]
|
None
=
(
None
)
allowed_token_ids
:
list
[
int
]
|
None
=
None
prompt_logprobs
:
int
|
None
=
None
# --8<-- [end:completion-sampling-params]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment