Repository navigation
Conversation
dan-petty
marked this pull request as ready for review
November 17, 2026 16:01
dan-petty
deleted the
fix/5096-stop-sending-sampling-parameters-that-sdk-2-refuses
branch
November 17, 2026 16:03
dan-petty
pushed a commit
that referenced
this pull request
Nov 17, 2026
🤖 I have created a release *beep* *boop* --- ## [0.173.2](v0.173.1...v0.173.2) (2026-11-17) ### Bug Fixes * **ai:** Omit sampling parameters that Anthropic SDK 2 refuses ([#6184](#6184)) ([1774ebf](1774ebf)) * **pr:** Wait for the closing issue before setting its status ([#6179](#6179)) ([383a20b](383a20b)) * **roadmap:** Confirm a rejection unless a chosen option names the tool ([#6186](#6186)) ([95b60e7](95b60e7)) * **roadmap:** give stage and implement the item comments ([#6182](#6182)) ([b5bd396](b5bd396)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
The Claude client sends temperature and top_p in extra_body. Anthropic SDK 2 sends API version 2026-10-21, which refuses those parameters with HTTP 400, so every Claude call fails at run time. The client now omits them when the installed SDK major is 2 or later and keeps the SDK 1 behavior, with an HTTP-seam test that refuses any such field.
Closes #5096
Change:
openspec/changes/archive/2026-11-17-5096-stop-sending-sampling-parameters-that-sdk-2-refuses/