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
0e959161
Unverified
Commit
0e959161
authored
Mar 17, 2026
by
Andrew Xia
Committed by
GitHub
Mar 18, 2026
Browse files
[responsesAPI] parser.extract_response_outputs can take in token IDs (#37130)
Signed-off-by:
Andrew Xia
<
axia@meta.com
>
parent
ce2ef42f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
vllm/entrypoints/openai/responses/serving.py
vllm/entrypoints/openai/responses/serving.py
+1
-0
vllm/parser/abstract_parser.py
vllm/parser/abstract_parser.py
+5
-0
No files found.
vllm/entrypoints/openai/responses/serving.py
View file @
0e959161
...
...
@@ -1012,6 +1012,7 @@ class OpenAIServingResponses(OpenAIServing):
parser
=
self
.
parser
(
tokenizer
)
return
parser
.
extract_response_outputs
(
model_output
=
final_output
.
text
,
model_output_token_ids
=
final_output
.
token_ids
,
request
=
request
,
enable_auto_tools
=
self
.
enable_auto_tools
,
tool_call_id_type
=
self
.
tool_call_id_type
,
...
...
vllm/parser/abstract_parser.py
View file @
0e959161
...
...
@@ -155,7 +155,9 @@ class Parser:
@
abstractmethod
def
extract_response_outputs
(
self
,
*
,
model_output
:
str
,
model_output_token_ids
:
Sequence
[
int
],
request
:
ResponsesRequest
,
enable_auto_tools
:
bool
=
False
,
tool_call_id_type
:
str
=
"random"
,
...
...
@@ -170,6 +172,7 @@ class Parser:
Args:
model_output: The complete model-generated string.
model_output_token_ids: The token IDs of the model output.
request: The request object used to generate the output.
enable_auto_tools: Whether to enable automatic tool call parsing.
tool_call_id_type: Type of tool call ID generation ("random", etc).
...
...
@@ -313,7 +316,9 @@ class DelegatingParser(Parser):
def
extract_response_outputs
(
self
,
*
,
model_output
:
str
,
model_output_token_ids
:
Sequence
[
int
],
request
:
ResponsesRequest
,
enable_auto_tools
:
bool
=
False
,
tool_call_id_type
:
str
=
"random"
,
...
...
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