From 6cc403e67d9ca8b4fc8c93a84096ed98161c938b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Lucchesi?= Date: Mon, 16 Feb 2026 17:11:07 +0100 Subject: [PATCH] [Bugfix][CI] Fix flaky `entrypoints/openai/test_response_api_with_harmony.py::test_function_calling[openai/gpt-oss-20b]` (#34624) Signed-off-by: NickLucche --- tests/entrypoints/openai/responses/test_harmony.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/entrypoints/openai/responses/test_harmony.py b/tests/entrypoints/openai/responses/test_harmony.py index 641171e3c2..6af1270abf 100644 --- a/tests/entrypoints/openai/responses/test_harmony.py +++ b/tests/entrypoints/openai/responses/test_harmony.py @@ -6,7 +6,6 @@ import time import pytest import pytest_asyncio -import requests from openai import BadRequestError, NotFoundError, OpenAI from openai_harmony import ( Message, @@ -513,11 +512,9 @@ async def test_code_interpreter(client: OpenAI, model_name: str): def get_weather(latitude, longitude): - response = requests.get( - f"https://api.open-meteo.com/v1/forecast?latitude={latitude}&longitude={longitude}¤t=temperature_2m,wind_speed_10m&hourly=temperature_2m,relative_humidity_2m,wind_speed_10m" # noqa - ) - data = response.json() - return data["current"]["temperature_2m"] + # Return a static temperature value to avoid flaky SSL/network errors + # from calling the external api.open-meteo.com API in CI. + return 15.0 def get_place_to_travel():