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
e23ca3a0
Unverified
Commit
e23ca3a0
authored
Dec 05, 2025
by
Nicolò Lucchesi
Committed by
GitHub
Dec 05, 2025
Browse files
[CI] Re-use whisper_client for all tests (#30148)
Signed-off-by:
NickLucche
<
nlucches@redhat.com
>
parent
3633035a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
tests/entrypoints/openai/test_transcription_validation_whisper.py
...trypoints/openai/test_transcription_validation_whisper.py
+13
-17
No files found.
tests/entrypoints/openai/test_transcription_validation_whisper.py
View file @
e23ca3a0
...
...
@@ -32,13 +32,9 @@ async def whisper_client(server):
@
pytest
.
mark
.
asyncio
async
def
test_basic_audio
(
mary_had_lamb
):
server_args
=
[
"--enforce-eager"
]
async
def
test_basic_audio
(
whisper_client
,
mary_had_lamb
):
# Based on https://github.com/openai/openai-cookbook/blob/main/examples/Whisper_prompting_guide.ipynb.
with
RemoteOpenAIServer
(
MODEL_NAME
,
server_args
)
as
remote_server
:
client
=
remote_server
.
get_async_client
()
transcription
=
await
client
.
audio
.
transcriptions
.
create
(
transcription
=
await
whisper_client
.
audio
.
transcriptions
.
create
(
model
=
MODEL_NAME
,
file
=
mary_had_lamb
,
language
=
"en"
,
...
...
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