From 7ba3e80057a9f7345ca24389e1e50ef18fe47a67 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Fri, 5 Dec 2025 11:26:17 -0500 Subject: [PATCH] test(openai): mark `test_structured_output_and_tools` flaky (#34223) Often raises `KeyError: 'explanation'` --- .../openai/tests/integration_tests/chat_models/test_base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/partners/openai/tests/integration_tests/chat_models/test_base.py b/libs/partners/openai/tests/integration_tests/chat_models/test_base.py index e2d0133879a..02475b5a8be 100644 --- a/libs/partners/openai/tests/integration_tests/chat_models/test_base.py +++ b/libs/partners/openai/tests/integration_tests/chat_models/test_base.py @@ -1157,6 +1157,7 @@ class ResponseFormatDict(TypedDict): explanation: str +@pytest.mark.flaky(retries=3, delay=1) @pytest.mark.parametrize( "schema", [ResponseFormat, ResponseFormat.model_json_schema(), ResponseFormatDict] )