Skip to content

Commit bb5973c

Browse files
committed
wip
1 parent 7d80e04 commit bb5973c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sentry_sdk/integrations/openai.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@
2626

2727
try:
2828
try:
29-
from openai import NotGiven, Omit
29+
from openai import NotGiven
3030
except ImportError:
3131
NotGiven = None
3232

33+
try:
34+
from openai import Omit
35+
except ImportError:
36+
Omit = None
37+
3338
from openai.resources.chat.completions import Completions, AsyncCompletions
3439
from openai.resources import Embeddings, AsyncEmbeddings
3540

0 commit comments

Comments
 (0)