diff --git a/tests/entrypoints/openai/chat_completion/test_chat.py b/tests/entrypoints/openai/chat_completion/test_chat.py index 212839f78d5c..80f54f6800ae 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"