Skip to content

fix(openai): Read input_text parts for the Responses API - #7333

Merged
alexander-alderman-webb merged 4 commits into
masterfrom
webb/openai/fix-responses-instructions
Sep 3, 2026
Merged

fix(openai): Read input_text parts for the Responses API#7333
alexander-alderman-webb merged 4 commits into
masterfrom
webb/openai/fix-responses-instructions

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Description

Input text parts have the input_text type in the Responses API schema:

https://github.com/openai/openai-python/blob/ab76ab5c64b8d19761ce838891acc80743cd944a/src/openai/types/responses/response_input_text_param.py#L26

When I wrote this I incorrectly thought that the Responses text types were a superset of the Chat Completions type.

Issues

Reminders

Comment thread sentry_sdk/ai/_openai_responses_api.py
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

2241 passed | ⏭️ 173 skipped | Total: 2414 | Pass Rate: 92.83% | Execution Time: 7m 21s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -135158
Passed Tests 📉 -128221
Failed Tests
Skipped Tests 📉 -6937

All tests are passing successfully.

❌ Patch coverage is 16.67%. Project has 15742 uncovered lines.
❌ Project coverage is 38.68%. Comparing base (base) to head (head).

Files with missing lines (2)
File Patch % Lines
sentry_sdk/ai/_openai_responses_api.py 9.52% ⚠️ 19 Missing
sentry_sdk/integrations/openai.py 66.67% ⚠️ 1 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    90.28%    38.68%    -51.6%
==========================================
  Files          193       193         —
  Lines        25664     25670        +6
  Branches      9458      9470       +12
==========================================
+ Hits         23168      9928    -13240
- Misses        2496     15742    +13246
- Partials      1433       533      -900

Generated by Codecov Action

@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review September 2, 2026 07:36
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner September 2, 2026 07:36
@alexander-alderman-webb
alexander-alderman-webb merged commit 959bad7 into master Sep 3, 2026
270 of 272 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/openai/fix-responses-instructions branch September 3, 2026 08:01
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.

2 participants