We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27d68c4 commit 2a40ca1Copy full SHA for 2a40ca1
sentry_sdk/integrations/openai.py
@@ -121,7 +121,7 @@ def _calculate_chat_completion_usage(
121
122
def _wrap_chat_completion_create(f):
123
# type: (Callable[..., Any]) -> Callable[..., Any]
124
- @wraps(f)
+
125
@ensure_integration_enabled(OpenAIIntegration, f)
126
def new_chat_completion(*args, **kwargs):
127
# type: (*Any, **Any) -> Any
@@ -211,7 +211,7 @@ def new_iterator():
211
else:
212
set_data_normalized(span, "unknown_response", True)
213
span.__exit__(None, None, None)
214
- return res
+ return res
215
216
return new_chat_completion
217
0 commit comments