Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/e2e/test_chat_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,15 +801,15 @@ 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",
"content": "Who won the Roland Garros Open in 2024? Just reply with the winner's name.",
},
],
extra_body={"web_search": True},
temperature=0.2,
temperature=0.01,
max_tokens=150,
)

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/test_chat_completions_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,15 +908,15 @@ 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",
"content": "Who won the Roland Garros Open in 2024? Just reply with the winner's name.",
},
],
"extra_body": {"web_search": True},
"temperature": 0.2,
"temperature": 0.01,
"max_tokens": 150,
}

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/test_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions tests/e2e/test_responses_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading