On behalf of the Spring AI engineering team and everyone who has contributed, I'm happy to announce that Spring AI 1.0.7, 1.1.6, 2.0.0-M6 have been released and are now available from Maven Central.
These releases deliver important improvements, stability enhancements, and bug fixes across multiple release streams.
Release Summary
These releases include a combined total of 143 improvements, bug fixes, and documentation updates. See individual release notes: 1.0.7 | 1.1.6 | 2.0.0-M6
Security: 53 dependency upgrades for enhanced security
Thanks to all those who have contributed with issue reports and pull requests.
Version-Specific Highlights
Spring AI 1.0.7
Overview:
PromptChatMemoryAdvisor has been deprecated. Users should migrate to the updated chat memory advisor APIs that require explicit conversation IDs.
⚠️ Breaking Changes:
Chat memory advisors now require an explicit conversation ID to be supplied. Previously, a default or implicit ID may have been used, which could cause incorrect memory scoping across conversations. Callers must now provide a conversation ID explicitly.
PromptChatMemoryAdvisor has been deprecated. Users should migrate to the updated chat memory advisor API that requires an explicit conversation ID. This deprecation is part of a broader effort to improve conversation context management. 917f62e
⚠️ Breaking Changes:
Chat memory advisors now require an explicit conversation ID to be supplied. This is a behavioral change that affects how chat memory is scoped and managed. Applications relying on implicit conversation IDs must be updated to supply an explicit ID.
Deprecated properties have been added to OpenAiChatProperties to maintain backward compatibility with the previous AbstractOpenAiOptions extension. Users should migrate to the new configuration approach. f271fdc
Setter methods have been removed from PostgresML embedding options and Stability AI image options classes, as well as from common ChatOptions (internalToolExecutionEnabled, outputSchema). These options should now be configured through the builder pattern or constructors. Affected: PostgresMlEmbeddingOptions, StabilityAiImageOptions, and common ChatOptions. a0ad1c7, 741a6cc, #5957
Two vector store integrations (SAP HANA DB and Infinispan) have been removed from the Spring AI project. Users of these modules should plan migration to supported vector store alternatives. 35b659e
Continued polish of null-safety annotations across the codebase using the JSpecify standard, improving IDE support and static analysis for nullability. 65f9c67
The AssistantMessage builder has been refactored to properly support inheritance, enabling subclasses to extend the builder fluently. 2622d03
OpenAI Java SDK is updated to 4.34.0
Anthropic Java SDK is updated to 2.30.0
⚠️ Breaking Changes:
PromptChatMemoryAdvisor has been removed. Chat memory advisors now require an explicit conversation ID to be provided, improving predictability and eliminating ambiguous implicit state management. Applications using PromptChatMemoryAdvisor or relying on implicit conversation IDs must be updated. c3c7c86,
The class OpenAiConnectionProperties has been renamed to OpenAiCommonProperties to better reflect its purpose as shared configuration across OpenAI integrations.
OpenAI properties classes (e.g., OpenAiChatProperties, OpenAiEmbeddingProperties) no longer extend AbstractOpenAiOptions. This changes the class hierarchy and may affect code that relied on the options being available directly on properties classes.
Key Improvements:
Enhanced functionality with 18 improvements
Documentation updates with 30 improvements
Updated dependencies for better security and performance
The Spring AI team continues to focus on improving AI application development with Spring Boot. Based on the momentum from these releases, upcoming versions will build on these foundations with enhanced capabilities and developer experience improvements.
For the latest updates and to contribute to the project, visit our GitHub repository or join the discussion in our community channels.