Skip to content

Commit 3979682

Browse files
committed
Fix types
1 parent 8a1b40a commit 3979682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/openai.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _calculate_chat_completion_usage(
113113

114114

115115
def _new_chat_completion_common(f, *args, **kwargs):
116-
# type: (*Any, **Any) -> Any
116+
# type: (Any, *Any, **Any) -> Any
117117
if "messages" not in kwargs:
118118
# invalid call (in all versions of openai), let it return error
119119
return f(*args, **kwargs)
@@ -230,7 +230,7 @@ async def _sentry_patched_create_async(*args, **kwargs):
230230

231231

232232
def _new_embeddings_create_common(f, *args, **kwargs):
233-
# type: (*Any, **Any) -> Any
233+
# type: (Any, *Any, **Any) -> Any
234234
with sentry_sdk.start_span(
235235
op=consts.OP.OPENAI_EMBEDDINGS_CREATE,
236236
description="OpenAI Embedding Creation",

0 commit comments

Comments
 (0)