Spring
Follow
Spring AI 2.1.0-RC1 and 2.0.2 Available Now
The Spring AI team has announced the release of Spring AI 2.1.0-RC1 and 2.0.2, now available on Maven Central. Version 2.1.0-RC1 introduces several key features, including native message part handling across major chat models like OpenAI, Anthropic, and Google GenAI. This ensures the order and payload of reasoning, tool calls, and provider-specific blocks are preserved during conversations. A significant addition is the session memory, ported from the community Spring AI Session project, which manages long-running conversations as an append-only log of structured events with turn-aware compaction strategies. ChatMemory and related types are now deprecated in favor of this new session memory.Tool call confirmation is another new feature, allowing applications to approve or deny tool actions before they execute, enhancing user control over sensitive operations. This mechanism supports configurable policies for deciding which calls require confirmation. Furthermore, users can now search vector stores with their own pre-computed query embeddings, extending the functionality for custom embedding workflows. Several vector stores, including pgvector, Qdrant, Redis, Elasticsearch, and OpenSearch, implement this new search capability.Qxotic jinfer is now supported, providing a pure-JVM inference engine for ChatModel, EmbeddingModel, Text-to-Speech, and Speech-to-Text transcription. Audio capabilities have been expanded, with Google GenAI gaining text-to-speech and transcription models, and observability now covers speech, transcription, and image generation. Smaller enhancements include TokenTextSplitter supporting chunk overlap, PgVectorStore allowing custom column names, and Azure OpenAI accepting custom credentials.Upgrade notes highlight changes like BedrockChatOptions.requestParameters now being a Map and the deprecation of ChatMemory. Numerous fixes address issues across various providers and components, including Anthropic's answer generation, OpenAI's image MIME types, Google GenAI's tool call extraction, and Bedrock's tool-call arguments. Dependencies have also been updated, including Spring Boot, OpenAI Java SDK, and AWS SDK. Additionally, new versions of community integrations like the TypeSafe AI jev API client and Spring AI A2A have been released. Spring AI 2.0.2 has also been released, containing all fixes included in 2.1.0-RC1.