-
Notifications
You must be signed in to change notification settings - Fork 568
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
Add support for OpenAi responses API
#4564
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## antonpirker/openai-overhaul #4564 +/- ##
==============================================================
Coverage ? 80.73%
==============================================================
Files ? 156
Lines ? 16581
Branches ? 2814
==============================================================
Hits ? 13387
Misses ? 2304
Partials ? 890
|
|
Waiting on #4566 |
This adds async instrumentation for `/responses` API (and also makes sure the span ops and some common attributes are set)
sentrivana
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall lgtm! Just two small improvement suggestions
Co-authored-by: Ivana Kellyer <[email protected]>
Update our OpenAI integration to support new APIs (`/responses`) and be OTel and Sentry AI Agents insights module compatible. Contains: - #4563 - #4564 - #4628 --------- Co-authored-by: Ivana Kellyer <[email protected]>
Add support for the new preferred way of using OpenAI, the
/responsesAPI (see https://platform.openai.com/docs/guides/responses-vs-chat-completions)Also makes sure the current span is captured when an error is raised.