Skip to content

Commit 8d6b739

Browse files
committed
fix for older openai libs
1 parent f25acaf commit 8d6b739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integrations/openai/test_openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ async def test_streaming_responses_api_async(
13921392

13931393
@pytest.mark.parametrize(
13941394
"tools",
1395-
[[], None, openai.NOT_GIVEN],
1395+
[[], None, openai.NOT_GIVEN if hasattr(openai, "NOT_GIVEN") else None],
13961396
)
13971397
def test_empty_tools_in_chat_completion(sentry_init, capture_events, tools):
13981398
sentry_init(

0 commit comments

Comments
 (0)