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
b322b197
Unverified
Commit
b322b197
authored
Mar 18, 2026
by
Chauncey
Committed by
GitHub
Mar 18, 2026
Browse files
[Build] Bump python openai version (#32316)
Signed-off-by:
chaunceyjiang
<
chaunceyjiang@gmail.com
>
parent
eaf7c9b9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
19 deletions
+16
-19
requirements/common.txt
requirements/common.txt
+1
-1
tests/entrypoints/openai/responses/conftest.py
tests/entrypoints/openai/responses/conftest.py
+1
-1
tests/entrypoints/openai/responses/test_function_call.py
tests/entrypoints/openai/responses/test_function_call.py
+9
-6
vllm/entrypoints/openai/responses/protocol.py
vllm/entrypoints/openai/responses/protocol.py
+3
-9
vllm/tool_parsers/abstract_tool_parser.py
vllm/tool_parsers/abstract_tool_parser.py
+2
-2
No files found.
requirements/common.txt
View file @
b322b197
...
...
@@ -12,7 +12,7 @@ tokenizers >= 0.21.1 # Required for fast incremental detokenization.
protobuf >= 5.29.6, !=6.30.*, !=6.31.*, !=6.32.*, !=6.33.0.*, !=6.33.1.*, !=6.33.2.*, !=6.33.3.*, !=6.33.4.* # Required by LlamaTokenizer, gRPC. CVE-2026-0994
fastapi[standard] >= 0.115.0 # Required by FastAPI's form models in the OpenAI API server's audio transcriptions endpoint.
aiohttp >= 3.13.3
openai >=
1.99.1, < 2.25
.0 # For Responses API with reasoning content
openai >=
2.0
.0 # For Responses API with reasoning content
pydantic >= 2.12.0
prometheus_client >= 0.18.0
pillow # Required for image processing
...
...
tests/entrypoints/openai/responses/conftest.py
View file @
b322b197
...
...
@@ -370,7 +370,7 @@ def log_response_diagnostics(
def
default_server_args
():
return
[
"--max-model-len"
,
"8192"
,
"
1
8192"
,
"--enforce-eager"
,
# For faster startup.
"--enable-auto-tool-choice"
,
"--structured-outputs-config.backend"
,
...
...
tests/entrypoints/openai/responses/test_function_call.py
View file @
b322b197
...
...
@@ -118,7 +118,6 @@ async def test_function_tool_use(
tool_choice
=
tool_choice
,
temperature
=
0.0
,
)
assert
len
(
response
.
output
)
>=
1
tool_call
=
None
reasoning
=
None
...
...
@@ -127,11 +126,15 @@ async def test_function_tool_use(
tool_call
=
out
if
out
.
type
==
"reasoning"
:
reasoning
=
out
if
response
.
incomplete_details
is
None
:
assert
tool_call
is
not
None
assert
tool_call
.
type
==
"function_call"
assert
json
.
loads
(
tool_call
.
arguments
)
is
not
None
assert
reasoning
is
not
None
assert
reasoning
.
type
==
"reasoning"
else
:
print
(
response
.
model_dump_json
(
indent
=
2
))
assert
response
.
incomplete_details
.
reason
==
"max_output_tokens"
@
pytest
.
mark
.
asyncio
...
...
vllm/entrypoints/openai/responses/protocol.py
View file @
b322b197
...
...
@@ -27,6 +27,7 @@ from openai.types.responses import (
ResponseReasoningTextDeltaEvent
,
ResponseReasoningTextDoneEvent
,
ResponseStatus
,
ResponseTextConfig
,
ResponseWebSearchCallCompletedEvent
,
ResponseWebSearchCallInProgressEvent
,
ResponseWebSearchCallSearchingEvent
,
...
...
@@ -38,20 +39,13 @@ from openai.types.responses import ResponseCreatedEvent as OpenAIResponseCreated
from
openai.types.responses
import
(
ResponseInProgressEvent
as
OpenAIResponseInProgressEvent
,
)
from
openai.types.responses.tool
import
Tool
from
openai_harmony
import
Message
as
OpenAIHarmonyMessage
# Backward compatibility for OpenAI client versions
try
:
# For older openai versions (< 1.100.0)
from
openai.types.responses
import
ResponseTextConfig
except
ImportError
:
# For newer openai versions (>= 1.100.0)
from
openai.types.responses
import
ResponseFormatTextConfig
as
ResponseTextConfig
from
openai.types.responses.response
import
IncompleteDetails
,
ToolChoice
from
openai.types.responses.response_reasoning_item
import
(
Content
as
ResponseReasoningTextContent
,
)
from
openai.types.responses.tool
import
Tool
from
openai.types.shared
import
Metadata
,
Reasoning
from
openai_harmony
import
Message
as
OpenAIHarmonyMessage
from
pydantic
import
(
Field
,
ValidationError
,
...
...
vllm/tool_parsers/abstract_tool_parser.py
View file @
b322b197
...
...
@@ -6,8 +6,9 @@ import os
from
collections.abc
import
Callable
,
Sequence
from
functools
import
cached_property
from
openai.types.responses
.response_format_text_json_schema_config
import
(
from
openai.types.responses
import
(
ResponseFormatTextJSONSchemaConfig
,
ResponseTextConfig
,
)
from
vllm.entrypoints.openai.chat_completion.protocol
import
ChatCompletionRequest
...
...
@@ -17,7 +18,6 @@ from vllm.entrypoints.openai.engine.protocol import (
)
from
vllm.entrypoints.openai.responses.protocol
import
(
ResponsesRequest
,
ResponseTextConfig
,
)
from
vllm.logger
import
init_logger
from
vllm.sampling_params
import
(
...
...
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