release: 6.44.1#1944
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 81d4d83502
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| // content-type for those, and only elide it for operations with no body at | ||
| // all (e.g. GET/DELETE). | ||
| if (body == null && 'body' in options) { | ||
| return this.#encoder({ body, headers: buildHeaders([rawHeaders]) }); |
There was a problem hiding this comment.
Avoid serializing null optional bodies
For generated optional-body methods that explicitly allow null (for example responses.inputTokens.count(null) via body: ... | null | undefined = {}), this branch now passes null to the default encoder, so JSON.stringify(null) produces the literal "null" and buildRequest sends it as a request payload. Before this change, null behaved like an omitted body; keep that omission behavior for null and only add the empty-body content type for undefined.
Useful? React with 👍 / 👎.
81d4d83 to
a9d1c26
Compare
a9d1c26 to
329bef9
Compare
Automated Release PR
6.44.1 (2026-06-22)
Full Changelog: v6.44.0...v6.44.1
Bug Fixes
Chores
Build System
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