The Wire · Showcase
SPRING-AI PATCHES ANTHROPIC STREAM TRUNCATION BUG, FIXES OLLAMA MODEL INHERITANCE
By RepoJournal · Filed · About Spring
Spring AI shipped fixes for two production issues that break AI integrations: Anthropic thinking blocks disappearing on stream truncation and Ollama requests failing when prompt options don't inherit the configured model.
The Anthropic thinking signature fix [1] prevents data loss when streams terminate early by guarding against missing signatures before they reach the replay buffer, with logging to surface when this happens. More critically, OllamaChatModel now correctly inherits its base model configuration when prompt-level options are provided [2], fixing the 404 failures that occur when environments lack the default Mistral model. Spring AI also hardened against locale-specific string comparisons [3] by using Locale.ROOT for protocol operations like uppercase/lowercase on wire values, ensuring builds succeed on Turkish JVMs where 'I'.toLowerCase() incorrectly produces 'ı'. These are all targeted fixes without breaking changes. On the security desk, Spring Security bumped Jackson to 2.22.1 [5], a routine patch that includes maintenance improvements. Documentation got a minor typo correction [4].
Action items
- → Upgrade spring-ai if you use Ollama with non-Mistral models or Anthropic streaming spring-projects/spring-ai [immediate]
- → Update Jackson to 2.22.1 in spring-security deployments on next routine cycle spring-projects/spring-security [plan]
- → Verify Anthropic integrations log warnings on stream truncation after upgrade spring-projects/spring-ai [monitor]
References
- [1] Guard against missing Anthropic thinking signature on stream truncation spring-projects/spring-ai
- [2] Fix OllamaChatModel prompt options not inheriting configured model spring-projects/spring-ai
- [3] Use Locale.ROOT for String uppercase/lowercase operations on wire/protocol values spring-projects/spring-ai
- [4] Fix duplicate "is is" typo in openai-chat.adoc spring-projects/spring-ai
- [5] Bump com.fasterxml.jackson:jackson-bom from 2.22.0 to 2.22.1 ↗ spring-projects/spring-security
FAQ
- What changed in Spring on July 8, 2026?
- Spring AI shipped fixes for two production issues that break AI integrations: Anthropic thinking blocks disappearing on stream truncation and Ollama requests failing when prompt options don't inherit the configured model.
- What should Spring teams do about it?
- Upgrade spring-ai if you use Ollama with non-Mistral models or Anthropic streaming • Update Jackson to 2.22.1 in spring-security deployments on next routine cycle • Verify Anthropic integrations log warnings on stream truncation after upgrade
- Which Spring repositories shipped on July 8, 2026?
- spring-projects/spring-ai, spring-projects/spring-security