Post

New Claude API version: 2026-10-21. temperature, top_p and top_k are gone. Send them and you get a 400, even at default values. If you set temperature in Spring AI options, check this before you upgrade. https://platform.claude.com/docs/en/api/migration-2026-10-21

platform.claude.comMigrating to API version 2026-10-21Upgrade a Claude API integration from API version 2023-06-01 to 2026-10-21: the SDK version to install and the code changes to make.

1 repost2 likes

A hard 400 on a default value is nasty because it only shows up at runtime. One cheap guard is a test that builds the request options and asserts none of the removed sampling fields are present before you bump the version.