test(openai): mark test_structured_output_and_tools flaky (#34223)

Often raises `KeyError: 'explanation'`
This commit is contained in:
Mason Daugherty
2025-12-05 11:26:17 -05:00
committed by GitHub
parent 50e27a447b
commit 7ba3e80057

View File

@@ -1157,6 +1157,7 @@ class ResponseFormatDict(TypedDict):
explanation: str explanation: str
@pytest.mark.flaky(retries=3, delay=1)
@pytest.mark.parametrize( @pytest.mark.parametrize(
"schema", [ResponseFormat, ResponseFormat.model_json_schema(), ResponseFormatDict] "schema", [ResponseFormat, ResponseFormat.model_json_schema(), ResponseFormatDict]
) )