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
dynamo
Commits
68235126
Unverified
Commit
68235126
authored
Jan 12, 2026
by
Qidong Su
Committed by
GitHub
Jan 12, 2026
Browse files
fix: pass back `usage` when using text mode with VLLM (#5336)
Signed-off-by:
Qidong Su
<
soodoshll@gmail.com
>
parent
c8770464
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
components/src/dynamo/vllm/handlers.py
components/src/dynamo/vllm/handlers.py
+5
-0
No files found.
components/src/dynamo/vllm/handlers.py
View file @
68235126
...
...
@@ -1300,6 +1300,11 @@ class DecodeWorkerHandler(BaseWorkerHandler):
"choices"
:
[
choice_data
],
}
if
output
.
finish_reason
:
chunk
[
"usage"
]
=
BaseWorkerHandler
.
_build_completion_usage
(
request_output
=
res
,
)
yield
chunk
except
EngineDeadError
as
e
:
...
...
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