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
934bb99c
Unverified
Commit
934bb99c
authored
Feb 26, 2025
by
Cyrus Leung
Committed by
GitHub
Feb 26, 2025
Browse files
[Bugfix] Update expected token counts for Ultravox tests (#13895)
parent
3f808cc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/entrypoints/openai/test_audio.py
tests/entrypoints/openai/test_audio.py
+3
-3
No files found.
tests/entrypoints/openai/test_audio.py
View file @
934bb99c
...
...
@@ -83,7 +83,7 @@ async def test_single_chat_session_audio(client: openai.AsyncOpenAI,
choice
=
chat_completion
.
choices
[
0
]
assert
choice
.
finish_reason
==
"length"
assert
chat_completion
.
usage
==
openai
.
types
.
CompletionUsage
(
completion_tokens
=
10
,
prompt_tokens
=
20
1
,
total_tokens
=
21
1
)
completion_tokens
=
10
,
prompt_tokens
=
20
2
,
total_tokens
=
21
2
)
message
=
choice
.
message
message
=
chat_completion
.
choices
[
0
].
message
...
...
@@ -140,7 +140,7 @@ async def test_single_chat_session_audio_base64encoded(
choice
=
chat_completion
.
choices
[
0
]
assert
choice
.
finish_reason
==
"length"
assert
chat_completion
.
usage
==
openai
.
types
.
CompletionUsage
(
completion_tokens
=
10
,
prompt_tokens
=
20
1
,
total_tokens
=
21
1
)
completion_tokens
=
10
,
prompt_tokens
=
20
2
,
total_tokens
=
21
2
)
message
=
choice
.
message
message
=
chat_completion
.
choices
[
0
].
message
...
...
@@ -196,7 +196,7 @@ async def test_single_chat_session_input_audio(
choice
=
chat_completion
.
choices
[
0
]
assert
choice
.
finish_reason
==
"length"
assert
chat_completion
.
usage
==
openai
.
types
.
CompletionUsage
(
completion_tokens
=
10
,
prompt_tokens
=
20
1
,
total_tokens
=
21
1
)
completion_tokens
=
10
,
prompt_tokens
=
20
2
,
total_tokens
=
21
2
)
message
=
choice
.
message
message
=
chat_completion
.
choices
[
0
].
message
...
...
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