From 29c748930e0d35a98351a8cf8a093fba4b758114 Mon Sep 17 00:00:00 2001 From: Roger Wang <136131678+ywang96@users.noreply.github.com> Date: Sat, 21 Dec 2024 21:08:44 -0800 Subject: [PATCH] [CI] Fix flaky entrypoint tests (#11403) Signed-off-by: Roger Wang --- tests/entrypoints/openai/test_audio.py | 3 +++ tests/entrypoints/openai/test_video.py | 3 +++ tests/entrypoints/openai/test_vision.py | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tests/entrypoints/openai/test_audio.py b/tests/entrypoints/openai/test_audio.py index 0a29d77e73abc..1116c0da1a6f0 100644 --- a/tests/entrypoints/openai/test_audio.py +++ b/tests/entrypoints/openai/test_audio.py @@ -74,6 +74,7 @@ async def test_single_chat_session_audio(client: openai.AsyncOpenAI, messages=messages, max_completion_tokens=10, logprobs=True, + temperature=0.0, top_logprobs=5) assert len(chat_completion.choices) == 1 @@ -130,6 +131,7 @@ async def test_single_chat_session_audio_base64encoded( messages=messages, max_completion_tokens=10, logprobs=True, + temperature=0.0, top_logprobs=5) assert len(chat_completion.choices) == 1 @@ -150,6 +152,7 @@ async def test_single_chat_session_audio_base64encoded( model=model_name, messages=messages, max_completion_tokens=10, + temperature=0.0, ) message = chat_completion.choices[0].message assert message.content is not None and len(message.content) >= 0 diff --git a/tests/entrypoints/openai/test_video.py b/tests/entrypoints/openai/test_video.py index 294b250362699..e73449e406739 100644 --- a/tests/entrypoints/openai/test_video.py +++ b/tests/entrypoints/openai/test_video.py @@ -82,6 +82,7 @@ async def test_single_chat_session_video(client: openai.AsyncOpenAI, messages=messages, max_completion_tokens=10, logprobs=True, + temperature=0.0, top_logprobs=5) assert len(chat_completion.choices) == 1 @@ -174,6 +175,7 @@ async def test_single_chat_session_video_base64encoded( messages=messages, max_completion_tokens=10, logprobs=True, + temperature=0.0, top_logprobs=5) assert len(chat_completion.choices) == 1 @@ -194,6 +196,7 @@ async def test_single_chat_session_video_base64encoded( model=model_name, messages=messages, max_completion_tokens=10, + temperature=0.0, ) message = chat_completion.choices[0].message assert message.content is not None and len(message.content) >= 0 diff --git a/tests/entrypoints/openai/test_vision.py b/tests/entrypoints/openai/test_vision.py index a0b6edd566561..5f070ba3b12e9 100644 --- a/tests/entrypoints/openai/test_vision.py +++ b/tests/entrypoints/openai/test_vision.py @@ -83,6 +83,7 @@ async def test_single_chat_session_image(client: openai.AsyncOpenAI, messages=messages, max_completion_tokens=10, logprobs=True, + temperature=0.0, top_logprobs=5) assert len(chat_completion.choices) == 1 @@ -175,6 +176,7 @@ async def test_single_chat_session_image_base64encoded( messages=messages, max_completion_tokens=10, logprobs=True, + temperature=0.0, top_logprobs=5) assert len(chat_completion.choices) == 1 @@ -195,6 +197,7 @@ async def test_single_chat_session_image_base64encoded( model=model_name, messages=messages, max_completion_tokens=10, + temperature=0.0, ) message = chat_completion.choices[0].message assert message.content is not None and len(message.content) >= 0