René's URL Explorer Experiment


Title: fix(openai): Avoid consuming iterables passed to the Completions API by alexander-alderman-webb · Pull Request #5489 · getsentry/sentry-python · GitHub

Open Graph Title: fix(openai): Avoid consuming iterables passed to the Completions API by alexander-alderman-webb · Pull Request #5489 · getsentry/sentry-python

X Title: fix(openai): Avoid consuming iterables passed to the Completions API by alexander-alderman-webb · Pull Request #5489 · getsentry/sentry-python

Description: The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.

Open Graph Description: Description Avoid consuming single-use iterators passed to the Completions API. The Completions API is typed more liberally than the Responses API and accepts single-use iterators. Consumable iter...

X Description: Description Avoid consuming single-use iterators passed to the Completions API. The Completions API is typed more liberally than the Responses API and accepts single-use iterators. Consumable iter...

Opengraph URL: https://github.com/getsentry/sentry-python/pull/5489

X: @github

direct link

Domain: redirect.github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4b0b14aa-b95a-9681-5768-b205936fc080
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCFA6:21AC3F:6BE1E1:8C5962:6B00D0F5
html-safe-nonce8ffec38cc15d2ccd3518e3b12724877cae5ccccd0a253c5595fd7cfed2115d3a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkE2OjIxQUMzRjo2QkUxRTE6OEM1OTYyOjZCMDBEMEY1IiwidmlzaXRvcl9pZCI6IjY5NjAzMDMzMDg4MTY4MzA3MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1b5448470ba05e188881a784474949638d243aa08ed75cbc35ab70daca5b94ce
hovercard-subject-tagpull_request:3307256189
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-python/5489/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cc3852fcb7cbaedd58e3191ece6cdc708896391e2457d6f1e4f534b6dfdcdcf5/getsentry/sentry-python/pull/5489
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cc3852fcb7cbaedd58e3191ece6cdc708896391e2457d6f1e4f534b6dfdcdcf5/getsentry/sentry-python/pull/5489
og:image:altDescription Avoid consuming single-use iterators passed to the Completions API. The Completions API is typed more liberally than the Responses API and accepts single-use iterators. Consumable iter...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealexander-alderman-webb
hostnamegithub.com
expected-hostnamegithub.com
None85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4943239a6d2c591325dad6e5c313e1cafda877f6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://redirect.github.com/getsentry/sentry-python/pull/5489#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5489
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5489
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://redirect.github.com/getsentry/sentry-python/pull/5489
Reloadhttps://redirect.github.com/getsentry/sentry-python/pull/5489
Reloadhttps://redirect.github.com/getsentry/sentry-python/pull/5489
getsentryhttps://redirect.github.com/getsentry
sentry-pythonhttps://redirect.github.com/getsentry/sentry-python
Codehttps://redirect.github.com/getsentry/sentry-python
Issues345 (345)https://redirect.github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://redirect.github.com/getsentry/sentry-python/pulls
Discussionshttps://redirect.github.com/getsentry/sentry-python/discussions
Actionshttps://redirect.github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://redirect.github.com/getsentry/sentry-python/security
Insightshttps://redirect.github.com/getsentry/sentry-python/insights
https://redirect.github.com/getsentry/sentry-python
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
masterhttps://redirect.github.com/getsentry/sentry-python/tree/master
webb/stop-consuming-completions-messageshttps://redirect.github.com/getsentry/sentry-python/tree/webb/stop-consuming-completions-messages
Conversationhttps://redirect.github.com/getsentry/sentry-python/pull/5489
Commits4 (4)https://redirect.github.com/getsentry/sentry-python/pull/5489/commits
Checkshttps://redirect.github.com/getsentry/sentry-python/pull/5489/checks
Files changedhttps://redirect.github.com/getsentry/sentry-python/pull/5489/files
fix(openai): Avoid consuming iterables passed to the Completions APIhttps://redirect.github.com/getsentry/sentry-python/pull/5489#top
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
masterhttps://redirect.github.com/getsentry/sentry-python/tree/master
webb/stop-consuming-completions-messageshttps://redirect.github.com/getsentry/sentry-python/tree/webb/stop-consuming-completions-messages
https://redirect.github.com/alexander-alderman-webb
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
Feb 20, 2026https://redirect.github.com/getsentry/sentry-python/pull/5489#issue-3967819643
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
https://github.com/openai/openai-python/blob/3e0c05b84a2056870abf3bd6a5e7849020209cc3/src/openai/_utils/_transform.py#L154https://github.com/openai/openai-python/blob/3e0c05b84a2056870abf3bd6a5e7849020209cc3/src/openai/_utils/_transform.py#L154
conventional commithttps://develop.sentry.dev/engineering-practices/commit-messages/#type
CONTRIBUTING.mdhttps://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md
Sentry SDK development docshttps://develop.sentry.dev/sdk/
Discord communityhttps://discord.gg/Ww9hbqr
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
https://redirect.github.com/alexander-alderman-webb
fix(openai): Avoid consuming iterables passed to Completions APIhttps://redirect.github.com/getsentry/sentry-python/pull/5489/commits/b6eb991b3bfd03ed4c84afa46fc1a0f76cd5b943
b6eb991https://redirect.github.com/getsentry/sentry-python/pull/5489/commits/b6eb991b3bfd03ed4c84afa46fc1a0f76cd5b943
https://redirect.github.com/alexander-alderman-webb
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
code ownerhttps://redirect.github.com/getsentry/sentry-python/blob/28d9288a42d53f4c54a82866e8207a4c1a0a6b1c/.github/CODEOWNERS#L1
February 20, 2026 10:34https://redirect.github.com/getsentry/sentry-python/pull/5489#event-22944678516
https://redirect.github.com/apps/github-actions
github-actionshttps://redirect.github.com/apps/github-actions
Feb 20, 2026https://redirect.github.com/getsentry/sentry-python/pull/5489#issuecomment-3932968223
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
https://redirect.github.com/apps/github-actions
github-actionshttps://redirect.github.com/apps/github-actions
Feb 20, 2026https://redirect.github.com/getsentry/sentry-python/pull/5489#issuecomment-3932972550
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
Codecov Actionhttps://github.com/getsentry/codecov-action
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
https://redirect.github.com/alexander-alderman-webb
unused type ignorehttps://redirect.github.com/getsentry/sentry-python/pull/5489/commits/6484710e5d98c2997df3168fa7f970b997867c2c
6484710https://redirect.github.com/getsentry/sentry-python/pull/5489/commits/6484710e5d98c2997df3168fa7f970b997867c2c
https://redirect.github.com/alexander-alderman-webb
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
February 20, 2026 13:22https://redirect.github.com/getsentry/sentry-python/pull/5489#event-22948698384
https://redirect.github.com/alexander-alderman-webb
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
February 20, 2026 13:22https://redirect.github.com/getsentry/sentry-python/pull/5489#event-22948698399
https://redirect.github.com/alexander-alderman-webb
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
February 20, 2026 13:46https://redirect.github.com/getsentry/sentry-python/pull/5489#event-22949263043
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
February 20, 2026 15:07https://redirect.github.com/getsentry/sentry-python/pull/5489#commits-pushed-2b58e65
https://redirect.github.com/alexander-alderman-webb
add dict edge casehttps://redirect.github.com/getsentry/sentry-python/pull/5489/commits/2b58e655e3b3d9d4c1c9a10ab7a7eac1d37b6114
2b58e65https://redirect.github.com/getsentry/sentry-python/pull/5489/commits/2b58e655e3b3d9d4c1c9a10ab7a7eac1d37b6114
https://redirect.github.com/alexander-alderman-webb
.https://redirect.github.com/getsentry/sentry-python/pull/5489/commits/ec29f16922af3d19ab580f914f66abf13fb3b48b
ec29f16https://redirect.github.com/getsentry/sentry-python/pull/5489/commits/ec29f16922af3d19ab580f914f66abf13fb3b48b
https://redirect.github.com/ericapisani
ericapisanihttps://redirect.github.com/ericapisani
Feb 20, 2026 https://redirect.github.com/getsentry/sentry-python/pull/5489#pullrequestreview-3833415760
View reviewed changes https://redirect.github.com/getsentry/sentry-python/pull/5489/files/ec29f16922af3d19ab580f914f66abf13fb3b48b
ericapisanihttps://redirect.github.com/ericapisani
https://redirect.github.com/getsentry/sentry-python/pull/5489#pullrequestreview-3833415760
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
sentry_sdk/integrations/openai.pyhttps://redirect.github.com/getsentry/sentry-python/pull/5489/files/ec29f16922af3d19ab580f914f66abf13fb3b48b#diff-8be672624748ac6598fe3d702a6beaf03e1fa6bc3c5f8aeadf68158d401fe34e
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
https://redirect.github.com/alexander-alderman-webb
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
594dce5https://redirect.github.com/getsentry/sentry-python/commit/594dce5a824e489a8f6f29370f634fb7cd8bb1a5
Feb 23, 2026https://github.com/getsentry/sentry-python/pull/5489#event-23001177289
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
https://redirect.github.com/alexander-alderman-webb
alexander-alderman-webbhttps://redirect.github.com/alexander-alderman-webb
February 23, 2026 13:20https://redirect.github.com/getsentry/sentry-python/pull/5489#event-23001178387
publish: getsentry/sentry-python@2.52.0a7 getsentry/publish#7263 https://redirect.github.com/getsentry/publish/issues/7263
publish: getsentry/sentry-python@2.54.0 getsentry/publish#7317 https://redirect.github.com/getsentry/publish/issues/7317
https://github.co/hiddenchars
https://redirect.github.com/getsentry/sentry-python/pull/{{ revealButtonHref }}
Sign up for freehttps://redirect.github.com/join?source=comment-repo
Sign in to commenthttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fpull%2F5489
https://redirect.github.com/ericapisani
ericapisani https://redirect.github.com/ericapisani
https://redirect.github.com/getsentry/sentry-python/pull/5489/files/ec29f16922af3d19ab580f914f66abf13fb3b48b
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
Please reload this pagehttps://redirect.github.com/getsentry/sentry-python/pull/5489
https://redirect.github.com/alexander-alderman-webb
https://redirect.github.com/ericapisani
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.