Skip to content

Add support for OpenAi responses API #4564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: antonpirker/openai-overhaul
Choose a base branch
from

Conversation

antonpirker
Copy link
Member

@antonpirker antonpirker commented Jul 9, 2025

Add support for the new preferred way of using OpenAI, the /responses API (see https://platform.openai.com/docs/guides/responses-vs-chat-completions)

Also makes sure the current span is captured when an error is raised.

Copy link

codecov bot commented Jul 9, 2025

Codecov Report

Attention: Patch coverage is 67.90123% with 26 lines in your changes missing coverage. Please review.

Please upload report for BASE (antonpirker/openai-overhaul@c263e02). Learn more about missing BASE report.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
sentry_sdk/integrations/openai.py 67.50% 21 Missing and 5 partials ⚠️
Additional details and impacted files
@@                      Coverage Diff                       @@
##             antonpirker/openai-overhaul    #4564   +/-   ##
==============================================================
  Coverage                               ?   80.59%           
==============================================================
  Files                                  ?      156           
  Lines                                  ?    16582           
  Branches                               ?     2814           
==============================================================
  Hits                                   ?    13365           
  Misses                                 ?     2327           
  Partials                               ?      890           
Files with missing lines Coverage Δ
sentry_sdk/consts.py 94.66% <100.00%> (ø)
sentry_sdk/integrations/openai.py 77.23% <67.50%> (ø)

@antonpirker
Copy link
Member Author

Waiting on #4566

@antonpirker antonpirker marked this pull request as ready for review July 21, 2025 15:27
@antonpirker antonpirker requested a review from a team as a code owner July 21, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant