[Misc] Relax translations tests (#20856)
Signed-off-by: NickLucche <nlucches@redhat.com>
This commit is contained in:
@@ -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):
|
|||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user