-
Notifications
You must be signed in to change notification settings - Fork 7
release: 1.20.0 #178
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
base: main
Are you sure you want to change the base?
release: 1.20.0 #178
Conversation
PR SummaryIntroduces first-class binary request bodies and streaming.
Written by Cursor Bugbot for commit e650197. This will update automatically on new commits. Configure here. |
|
🧪 Testing To try out this version of the SDK, run: Expires at: Mon, 16 Feb 2026 05:44:58 GMT |
| *, | ||
| cast_to: Type[ResponseT], | ||
| body: Body | None = None, | ||
| content: BinaryTypes | None = None, |
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.
Iterator content exhausted on retry sends empty body
High Severity
When content is an Iterable[bytes] (such as a generator), the retry logic fails silently. The model_copy at lines 972 and 982 performs a shallow copy, so the same iterator reference is shared across all retry attempts. After the first request consumes the iterator, subsequent retries send an empty body because the iterator is exhausted. With DEFAULT_MAX_RETRIES=2, this affects users by default when requests fail with 429, 500, or timeout errors.
Additional Locations (1)
7477385 to
e650197
Compare
Automated Release PR
1.20.0 (2026-01-17)
Full Changelog: v1.19.0...v1.20.0
Features
Chores
actions/checkoutversion (04aae72)This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions