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
9edd1db0
Unverified
Commit
9edd1db0
authored
Aug 06, 2025
by
Woosuk Kwon
Committed by
GitHub
Aug 06, 2025
Browse files
[Minor] Fix type (#22347)
Signed-off-by:
Woosuk Kwon
<
woosuk.kwon@berkeley.edu
>
parent
f263a4b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/entrypoints/harmony_utils.py
vllm/entrypoints/harmony_utils.py
+2
-2
No files found.
vllm/entrypoints/harmony_utils.py
View file @
9edd1db0
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import
datetime
import
datetime
from
collections.abc
import
Iterable
from
collections.abc
import
Iterable
,
Sequence
from
typing
import
Literal
,
Optional
from
typing
import
Literal
,
Optional
from
openai.types.responses.tool
import
Tool
from
openai.types.responses.tool
import
Tool
...
@@ -120,7 +120,7 @@ def parse_output_into_messages(token_ids: Iterable[int]) -> StreamableParser:
...
@@ -120,7 +120,7 @@ def parse_output_into_messages(token_ids: Iterable[int]) -> StreamableParser:
def
parse_chat_output
(
def
parse_chat_output
(
token_ids
:
list
[
int
])
->
tuple
[
Optional
[
str
],
Optional
[
str
],
bool
]:
token_ids
:
Sequence
[
int
])
->
tuple
[
Optional
[
str
],
Optional
[
str
],
bool
]:
parser
=
parse_output_into_messages
(
token_ids
)
parser
=
parse_output_into_messages
(
token_ids
)
output_msgs
=
parser
.
messages
output_msgs
=
parser
.
messages
if
len
(
output_msgs
)
==
0
:
if
len
(
output_msgs
)
==
0
:
...
...
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