-
Notifications
You must be signed in to change notification settings - Fork 48
release: 0.3.0 #42
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: 0.3.0 #42
Conversation
|
🧪 Testing To try out this version of the SDK, run: Expires at: Fri, 27 Feb 2026 16:37:39 GMT |
ac5c5d9 to
c72a9be
Compare
c72a9be to
00246c5
Compare
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.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| *, | ||
| 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 silently lost on request retry
Medium Severity
When content is an Iterable[bytes] (like a generator), the iterator is consumed on the first request attempt. If a retryable error occurs, the retry logic uses model_copy which performs a shallow copy, so options.content still references the same exhausted iterator. Subsequent retry attempts send an empty request body. This is exacerbated by DEFAULT_MAX_RETRIES being increased from 0 to 2 in this same PR. Users passing generator-based content could experience silent data loss on transient failures.
Additional Locations (1)
00246c5 to
f4bfcf4
Compare
f4bfcf4 to
120f4f7
Compare
Automated Release PR
0.3.0 (2026-01-28)
Full Changelog: v0.2.0...v0.3.0
Features
Bug Fixes
Chores
actions/github-script(cf53a9e)actions/checkoutversion (c72dfca)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
Note
Release 0.3.0 introducing a new OCR API and improved client I/O.
client.ocr.processfor/v1/ocrwithOcrDocument,OcrResponse, docs (api.md), and testscontentparam (sync/async); deprecates passing raw bytes inbody; addsBinaryTypes/AsyncBinaryTypes; request builder prevents mixingcontentwithjson/filesmax_retriesincreased to2with backoff tuned (INITIAL_RETRY_DELAY=0.5,MAX_RETRY_DELAY=8.0); README updatedas_base_urltohttps://as.dedaluslabs.aiwhen env var is unsetJSONObjectInput) across request/response formatsactions/checkoutto v6 andactions/github-scriptto v8; README MCP install links fixed0.3.0, changelog, manifest, stats updated (endpoints: 10→11)Written by Cursor Bugbot for commit 120f4f7. This will update automatically on new commits. Configure here.