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
399d2a10
Unverified
Commit
399d2a10
authored
Aug 07, 2025
by
Woosuk Kwon
Committed by
GitHub
Aug 07, 2025
Browse files
Fix pre-commit error in main (#22462)
Signed-off-by:
Woosuk Kwon
<
woosuk.kwon@berkeley.edu
>
parent
4815b00f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
vllm/entrypoints/openai/serving_responses.py
vllm/entrypoints/openai/serving_responses.py
+18
-18
No files found.
vllm/entrypoints/openai/serving_responses.py
View file @
399d2a10
...
...
@@ -422,24 +422,6 @@ class OpenAIServingResponses(OpenAIServing):
usage
=
usage
,
)
# Log complete response if output logging is enabled
if
self
.
enable_log_outputs
and
self
.
request_logger
:
output_text
=
""
if
content
:
output_text
=
content
elif
reasoning_content
:
output_text
=
f
"[reasoning:
{
reasoning_content
}
]"
if
output_text
:
self
.
request_logger
.
log_outputs
(
request_id
=
request
.
request_id
,
outputs
=
output_text
,
output_token_ids
=
final_output
.
token_ids
,
finish_reason
=
final_output
.
finish_reason
,
is_streaming
=
False
,
delta
=
False
,
)
if
request
.
store
:
async
with
self
.
response_store_lock
:
stored_response
=
self
.
response_store
.
get
(
response
.
id
)
...
...
@@ -469,6 +451,24 @@ class OpenAIServingResponses(OpenAIServing):
reasoning_content
=
None
content
=
final_output
.
text
# Log complete response if output logging is enabled
if
self
.
enable_log_outputs
and
self
.
request_logger
:
output_text
=
""
if
content
:
output_text
=
content
elif
reasoning_content
:
output_text
=
f
"[reasoning:
{
reasoning_content
}
]"
if
output_text
:
self
.
request_logger
.
log_outputs
(
request_id
=
request
.
request_id
,
outputs
=
output_text
,
output_token_ids
=
final_output
.
token_ids
,
finish_reason
=
final_output
.
finish_reason
,
is_streaming
=
False
,
delta
=
False
,
)
output
=
[]
if
reasoning_content
:
reasoning_item
=
ResponseReasoningItem
(
...
...
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