From 75a7cf2c10f2dcc484c3e0444af33e0eaf3f4311 Mon Sep 17 00:00:00 2001 From: haosdent Date: Wed, 29 Apr 2026 11:23:59 +0800 Subject: [PATCH] [CI] De-flake test_chat_completion_n_parameter_non_streaming (#41147) Signed-off-by: haosdent --- tests/entrypoints/openai/chat_completion/test_chat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/entrypoints/openai/chat_completion/test_chat.py b/tests/entrypoints/openai/chat_completion/test_chat.py index 212839f78d..80f54f6800 100644 --- a/tests/entrypoints/openai/chat_completion/test_chat.py +++ b/tests/entrypoints/openai/chat_completion/test_chat.py @@ -845,9 +845,10 @@ async def test_chat_completion_n_parameter_non_streaming( chat_completion = await client.chat.completions.create( model=model_name, messages=messages, - max_completion_tokens=20, - temperature=0.7, + max_completion_tokens=50, + temperature=1.0, n=3, + seed=42, stream=False, ) @@ -859,7 +860,6 @@ async def test_chat_completion_n_parameter_non_streaming( assert choice.message.content is not None assert len(choice.message.content) > 0 - # Verify all responses are different (highly likely with temperature > 0) contents = [choice.message.content for choice in chat_completion.choices] assert len(set(contents)) > 1, "Expected different responses with n=3"