Remove the sampling options from AnthropicChatOptions builders
ProprietaryAnthropic API version 2026-10-21 rejects the temperature, top_p and top_k sampling options. Spring AI 2.1 no longer sends them, logs a warning when they are set, and deprecated them for removal on AnthropicChatOptions.Builder. This removes temperature(..), topP(..) and topK(..) from AnthropicChatOptions builders, where their argument has no side effects.
io. moderne. java. spring. ai2. RemoveAnthropicSamplingOptionsmod run . --recipe= io. moderne. java. spring. ai2. RemoveAnthropicSamplingOptionsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.