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
149f2435
Unverified
Commit
149f2435
authored
Jul 14, 2025
by
Nicolò Lucchesi
Committed by
GitHub
Jul 14, 2025
Browse files
[Misc] Relax translations tests (#20856)
Signed-off-by:
NickLucche
<
nlucches@redhat.com
>
parent
c0569dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tests/entrypoints/openai/test_translation_validation.py
tests/entrypoints/openai/test_translation_validation.py
+3
-4
No files found.
tests/entrypoints/openai/test_translation_validation.py
View file @
149f2435
...
@@ -39,8 +39,8 @@ async def test_basic_audio(foscolo):
...
@@ -39,8 +39,8 @@ async def test_basic_audio(foscolo):
# TODO remove once language detection is implemented
# TODO remove once language detection is implemented
extra_body
=
dict
(
language
=
"it"
),
extra_body
=
dict
(
language
=
"it"
),
temperature
=
0.0
)
temperature
=
0.0
)
out
=
json
.
loads
(
translation
)[
'text'
].
strip
()
out
=
json
.
loads
(
translation
)[
'text'
].
strip
()
.
lower
()
assert
"
Nor will I ever touch the sacred
"
in
out
assert
"
greek sea
"
in
out
@
pytest
.
mark
.
asyncio
@
pytest
.
mark
.
asyncio
...
@@ -168,5 +168,4 @@ async def test_long_audio_request(foscolo):
...
@@ -168,5 +168,4 @@ async def test_long_audio_request(foscolo):
response_format
=
"text"
,
response_format
=
"text"
,
temperature
=
0.0
)
temperature
=
0.0
)
out
=
json
.
loads
(
translation
)[
'text'
].
strip
().
lower
()
out
=
json
.
loads
(
translation
)[
'text'
].
strip
().
lower
()
# TODO investigate higher model uncertainty in for longer translations.
assert
out
.
count
(
"greek sea"
)
==
2
assert
out
.
count
(
"nor will i ever"
)
==
2
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