Open
Conversation
6c2b6c5 to
a594c75
Compare
85e4dfe to
1322c80
Compare
2bb4c49 to
7e69125
Compare
7cdfb0a to
ca310cd
Compare
fix(client): mark some request bodies as optional
3bdb00f to
3ad7f25
Compare
1be6ce9 to
97b7254
Compare
35a4088 to
bc25b84
Compare
ef0d130 to
08062c4
Compare
9257acd to
b41543a
Compare
df1d708 to
69a44e3
Compare
cf36bae to
bba1424
Compare
e0b03f0 to
3d90dff
Compare
84a0625 to
db19786
Compare
359644d to
21a20b3
Compare
e4ed00c to
a72636d
Compare
a72636d to
b7b5b98
Compare
b7b5b98 to
f7c66f3
Compare
f7c66f3 to
f0262a9
Compare
f0262a9 to
3524f04
Compare
3524f04 to
9bd1046
Compare
9bd1046 to
f263f8c
Compare
f263f8c to
5cddd6f
Compare
5cddd6f to
590d7c8
Compare
590d7c8 to
07aac58
Compare
07aac58 to
d01a3f6
Compare
d01a3f6 to
1e2a487
Compare
1e2a487 to
1efa099
Compare
1efa099 to
d60e2bc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated Release PR
4.1.0 (2026-01-30)
Full Changelog: v4.0.0...v4.1.0
Features
NotGivenfor body (#67) (3ad7f25)X-Stainless-Read-Timeoutheader (#63) (a594c75)Bug Fixes
model_dumpandmodel_dump_jsonfor Pydantic v1 (898ca7b)Chores
httpx-aiohttpversion to 0.1.9 (7aeb4c8)actions/github-script(bdad5ed)--fixargument to lint script (0b1e68e)pyproject.tomlfile (f87b268)actions/checkoutversion (54d6bd9)get_platformtest (ef07d85)Documentation
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
Medium Risk
Touches core HTTP request/response plumbing (retries, headers, streaming, body encoding) and packaging requirements (Python >=3.9), which could affect client behavior and compatibility across environments.
Overview
Updates the SDK release to
4.1.0(manifest,pyproject.toml, andCHANGELOG.md) and refreshes docs/metadata (new docs URLs, requirements now Python >=3.9, new aiohttp usage section, updated security contact/email).Client/runtime changes: adds an optional
aiohttpHTTP backend (DefaultAioHttpClient+[aiohttp]extra), supports sending raw/binary request bodies via a newcontentparameter (with validation and deprecations for bytes-in-body), and tweaks request construction/headers (noContent-Typeon GET, addX-Stainless-Read-Timeout, idempotency key handling). Retries are refactored from recursion to a loop; SSE streams now ensure responses are closed even if not fully consumed.Type/compat/perf: introduces explicit
not_given/omitsingletons, improves Pydantic v1/v2/v3 compatibility (datetime parsing utilities, model dump signatures, discriminated-union parsing, extra-field typing), and adds small performance caches in transform/type utilities.Tooling/CI: upgrades Rye to
0.44.0, adds Node to devcontainers, removes.vscodefrom.gitignoreand adds VS Code settings, updates workflows (checkout v6, timeouts, branch ignores), adds abuildjob that can upload artifacts via OIDC, updates Prism CLI usage, makesbootstrap’s Homebrew installs interactive, runs pytest in parallel, and adds./scripts/lint --fix.Written by Cursor Bugbot for commit d60e2bc. This will update automatically on new commits. Configure here.