Skip to content

Commit

Permalink
Merge branch 'master' into antonpirker/codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker authored Jun 24, 2024
2 parents 0d598e3 + 8094c9e commit 31467af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry_sdk/integrations/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _calculate_chat_completion_usage(

def _wrap_chat_completion_create(f):
# type: (Callable[..., Any]) -> Callable[..., Any]
@wraps(f)

@ensure_integration_enabled(OpenAIIntegration, f)
def new_chat_completion(*args, **kwargs):
# type: (*Any, **Any) -> Any
Expand Down Expand Up @@ -211,7 +211,7 @@ def new_iterator():
else:
set_data_normalized(span, "unknown_response", True)
span.__exit__(None, None, None)
return res
return res

return new_chat_completion

Expand Down

0 comments on commit 31467af

Please sign in to comment.