diff --git a/tests/e2e/test_chat_completions.py b/tests/e2e/test_chat_completions.py index 72b491f9..8093bcde 100644 --- a/tests/e2e/test_chat_completions.py +++ b/tests/e2e/test_chat_completions.py @@ -801,7 +801,7 @@ def test_web_search(client, model, high_web_search_rate_limit): messages=[ { "role": "system", - "content": "You are a helpful assistant that provides accurate and up-to-date information.", + "content": "You are a helpful assistant that provides accurate and up-to-date information. Answer in 10 words maximum and do not reason.", }, { "role": "user", @@ -809,7 +809,7 @@ def test_web_search(client, model, high_web_search_rate_limit): }, ], extra_body={"web_search": True}, - temperature=0.2, + temperature=0.01, max_tokens=150, ) diff --git a/tests/e2e/test_chat_completions_http.py b/tests/e2e/test_chat_completions_http.py index 32538f0b..f3111288 100644 --- a/tests/e2e/test_chat_completions_http.py +++ b/tests/e2e/test_chat_completions_http.py @@ -908,7 +908,7 @@ def test_web_search(client, model, high_web_search_rate_limit): "messages": [ { "role": "system", - "content": "You are a helpful assistant that provides accurate and up-to-date information.", + "content": "You are a helpful assistant that provides accurate and up-to-date information. Answer in 10 words maximum and do not reason.", }, { "role": "user", @@ -916,7 +916,7 @@ def test_web_search(client, model, high_web_search_rate_limit): }, ], "extra_body": {"web_search": True}, - "temperature": 0.2, + "temperature": 0.01, "max_tokens": 150, } diff --git a/tests/e2e/test_responses.py b/tests/e2e/test_responses.py index f5f931c5..33b725cf 100644 --- a/tests/e2e/test_responses.py +++ b/tests/e2e/test_responses.py @@ -709,9 +709,9 @@ def test_web_search(client, model, high_web_search_rate_limit): response = client.responses.create( model=model, input="Who won the Roland Garros Open in 2024? Just reply with the winner's name.", - instructions="You are a helpful assistant that provides accurate and up-to-date information.", + instructions="You are a helpful assistant that provides accurate and up-to-date information. Answer in 10 words maximum and do not reason.", extra_body={"web_search": True}, - temperature=0.2, + temperature=0.01, ) assert response is not None, "Response should not be None" diff --git a/tests/e2e/test_responses_http.py b/tests/e2e/test_responses_http.py index 03db990a..fe5fea33 100644 --- a/tests/e2e/test_responses_http.py +++ b/tests/e2e/test_responses_http.py @@ -813,9 +813,8 @@ def test_web_search(client, model, high_web_search_rate_limit): "model": model, "input": "Who won the Roland Garros Open in 2024? Just reply with the winner's name.", "instructions": "You are a helpful assistant that provides accurate and up-to-date information. Answer in 10 words maximum and do not reason.", - "temperature": 0.2, - "max_output_tokens": 15000, "extra_body": {"web_search": True}, + "temperature": 0.01, } response = client.post("/responses", json=payload, timeout=180)