Skip to content

Update spring.ai to v2 - #179

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-spring.ai
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-spring.ai

Conversation

@renovate

@renovate renovate Bot commented Jun 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
org.springframework.ai:spring-ai-client-chat 1.1.8 → 2.1.0 age confidence
org.springframework.ai:spring-ai-bom 1.1.8 → 2.1.0 age confidence

Release Notes

spring-projects/spring-ai (org.springframework.ai:spring-ai-client-chat)

v2.1.0

⭐ New Features

  • Add async client type for modern MCP connections #​7392
  • Add "spring-ai" User-Agent to Bedrock clients #​7388
  • Support modern MCP client connections #​7385
  • Name the session extension points: a public context helper, two contract tests and a docs page #​7372
  • Add session recall: a keyword search over the log and the conversation_search tool #​7371
  • Add upsert and query-embedding search to Couchbase #​7354
  • Add opt-in bulk upserts to MongoDBAtlasVectorStore #​7350
  • Support the asynchronous API type on the modern MCP server #​7349
  • Add SQL Server dialect for JdbcSessionRepository #​7301
  • feat: Introduce ConnectionDetails for OpenAI #​7203
  • Add FinishReasonCategory for provider-agnostic finish reason normalization #​5190

🐞 Bug Fixes

  • Adapt modern MCP transports to SDK McpHeaders #​7390
  • Run McpClientListChangedAnnotationsScanningIT tests with JUnit Jupiter #​7387
  • Adapt MCP annotations to the MCP SDK snapshot #​7382
  • Mark guardrail refusals with a finish reason #​7379
  • Answer the tool calls an earlier turn left without results #​7369
  • Fail JDBC session auto-configuration ITs on schema script errors #​7367
  • Delete expired sessions by id in JdbcSessionRepository to avoid deadlocks #​7362
  • Split long id lists in JdbcSessionRepository queries #​7361
  • Ensure MCP server handlers are registered regardless of bean order #​7329
  • Allow null context values in chat client advisors #​7175

📔 Documentation

  • Fix and link the modern MCP documentation #​7396
  • Point the chat memory and tools docs at session memory in Spring AI #​7368

❤️ Contributors

Thank you to all the contributors who worked on this release:

@​Ayush0612005, @​Kehrlann, @​QuarkOS, @​ThomasVitale, @​chuuminggg, @​dimitarproynov, @​durgadasepalli, @​sobychacko, and @​tzolov

v2.0.3

⭐ New Features

  • fix: missing micrometer metrics for images #​6804

🐞 Bug Fixes

  • Skip PgVectorStore vector size validation when dimensions are unset #​7341
  • Include cached tokens in Anthropic and Bedrock prompt tokens #​7273

❤️ Contributors

Thank you to all the contributors who worked on this release:

@​Ajax-1, @​OreOreDa, @​chuuminggg, @​dimitarproynov, @​kimnamu, @​mdnayanmia31, @​mmeckes, and @​sobychacko

v2.0.2

For upgrading from 2.0.1 to 2.0.2, please refer to the upgrade notes here.

⭐ New Features

  • Upgrade the Anthropic Java SDK to 2.72.0 #​7164
  • Add observability support for TextToSpeechModel, TranscriptionModel and StabilityAiImageModel #​7141
  • Configure Redis vector store metadata fields #​6870
  • Add customizers for stateless MCP servers #​6539

🐞 Bug Fixes

  • Fix numeric filters in Cassandra vector store #​7117
  • Fix StructuredOutputValidationAdvisor repeating tool call requests #​7100
  • Handle Ollama responses without a message #​7066
  • Return final answer first in AnthropicChatModel #​7001
  • Honor disabled reasoning in tool history #​6984
  • Include thinking text in Anthropic streaming chunks #​6982
  • Fix Neo4j chat memory index properties #​6967
  • Fix invalid JSON in Bedrock tool-call arguments #​6963
  • Backfill additionalProperties: false in OpenAI strict tool schemas #​6865
  • Restore honoring the configured OpenAI timeout #​6837
  • Fix JsoupDocumentReader dropping relative link URLs #​6803
  • Close the resource stream in TextReader #​6797
  • Fix tool call extraction in GoogleGenAiChatModel for mixed content responses #​5468

📔 Documentation

  • Document Anthropic server-side spans in traces #​7165
  • Correct stale API names in AI metadata docs #​7032
  • docs: document OpenAI reasoning effort property #​6943
  • Document MCP client scope and session boundaries #​6820

🔨 Dependency Upgrades

  • Upgrade OpenAI Java SDK to 4.80.0 #​7170
  • Upgrade AWS SDK and Bedrock runtime to 2.55.14 #​7169

❤️ Contributors

Thank you to all the contributors who worked on this release:

@​CodeTrainerMan, @​CryoThrust, @​JamesBLewis, @​Lubaoshuai, @​Rainmemery, @​ashakirin, @​chabinhwang, @​chengwudi1, @​chensishang, @​dimitarproynov, @​dlwldn30, @​flex-ilsub, @​herder, @​ikaitist, @​iuliiasobolevska, @​jhpark1227, @​jianran, @​kezhenxu94, @​lazer-dev, @​martin-grofcik, @​nicolaskrier, @​pengjonas, @​pengmoubuaixuexi, @​rvullriede, @​ryujungkyun, @​seo92js, @​sharanrenukeshbharmshetty, @​sobychacko, @​tzolov, @​vinayreddykalluri, @​wantaekchoi, @​xujiantop-crypto, and @​zxuhan

v2.0.1: Spring AI 2.0.1

For upgrading from 2.0.0 to 2.0.1, please refer to the upgrade notes here.

For the detailed reference documentation on 2.0.1, please refer here

⭐ New Features

  • Harden Ollama integration tests against flakiness #​6776
  • Retire deprecated Mistral AI chat models #​6772
  • Document additional 2.0.1 breaking changes #​6771
  • Support audio streaming in OpenAiAudioSpeechModel #​6733
  • Add configurable tool call limits #​6726
  • Enrich OpenAI transcription options and responses #​6697
  • Update Couchbase vector store to use Spring Boot-managed client #​6583
  • Remove explicit protobuf-java version properties #​6552
  • Add ToolChoice support for Google GenAI chat model #​6531
  • Remove fastjson2 dependency from spring-ai-azure-store #​6508
  • Refactor Media builder to use typed data overloads #​6481
  • Validate TokenTextSplitter builder arguments #​6452
  • Support page ranges in PagePdfDocumentReader #​6445
  • Revise DeepSeekApi #​6428
  • GraalVM for mcp annotations doesn't work in Spring AI 2.0.0 #​6427
  • Rename spring-ai-autoconfigure-model-chat-memory-redis #​6416
  • Restore PDF media mapping in OpenAiChatModel #​6410
  • Google Image generation support #​6408
  • Remove unused field maxResults #​6344
  • Confusing WARN log while AWS region resolving #​5108
  • SpringAI does not follow the AWS SDK's default region resolution rules #​823

🐞 Bug Fixes

  • Reserve Redis chat memory timestamps atomically #​6784
  • Fix RedisChatMemoryRepository clear() #​6783
  • Escape metadata values in Redis chat memory queries #​6765
  • Validate resolved resource path #​6764
  • Introduce maxSessions and sessionIdleTimeout #​6760
  • Fix OpenAiAudioTranscriptionModel leaking the stream on cancellation #​6759
  • Merge java-compile compilerArgs instead of overriding #​6756
  • Default OpenAI tool-calling strict mode to false #​6755
  • Use temporary directory for cache #​6754
  • Handle malformed pdf in PdfDocumentReader #​6753
  • Make tool resolution fallback configurable #​6751
  • Use full length hash #​6746
  • Correct ToolContext parameter detection #​6744
  • Return a single Generation on ToolCallLimitExceededException #​6742
  • Fix ToolCallingAdvisor streaming loop dropping doBeforeStream mutations #​6737
  • Add instructions option to OpenAiAudioSpeechModel #​6731
  • Apply MCP HTTP client request customizer beans #​6716
  • Close OpenAI stream response on cancellation #​6656
  • Validate text length to prevent StringIndexOutOfBoundsException for MarkdownCodeBlockCleaner #​6645
  • Fix AnthropicChatOptions.timeout(Duration) being ignored outside model construction #​6605
  • Close native resources in TransformersEmbeddingModel #​6572
  • Fix OllamaChatModel prompt options not inheriting configured model #​6567
  • Use Locale.ROOT for String uppercase/lowercase operations on wire/protocol values #​6566
  • Handle null fields in Mistral AI moderation Categories and CategoryScores #​6565
  • Fix Azure OpenAI authentication failure behind a TLS-inspecting proxy #​6553
  • Fix OpenSearchVectorStore document deserialization #​6550
  • Fix group precedence in MilvusFilterExpressionConverter #​6543
  • Fix strict mode payload placement in OpenAiChatModel #​6540
  • Align @McpTool exception handling with @Tool contract #​6534
  • Fix MCP stdio connections without args #​6533
  • Fix Milvus metadata integer values deserialized as Long instead of Double #​6517
  • Fix OpenAI stream handling for empty tool_calls #​6504
  • Fix shared mutable state in chat options builder clone() #​6498
  • Fix tool-search reference extraction for parallel calls #​6497
  • Fix incorrect assertions in CouchbaseSearchVectorStore.Builder #​6490
  • Fix shared mutable state in AnthropicChatOptions.Builder.clone() #​6487
  • Fix null parent for tool call observations in blocking mode #​6475
  • Fix Milvus filters with custom metadata field #​6470
  • Add tool-search advisor modules to BOM #​6464
  • Use model-independent assertions for tool-call token usage #​6461
  • Fix tool-search advisor auto-config ordering #​6458
  • There is a bug in the openai streaming mode #​6441
  • Validate PgVectorStore table schema after initialization #​6438
  • Accumulate tool calling advisor usage #​6424
  • Fix MarkdownCodeBlockCleaner discarding content of single-line fenced code blocks #​6423
  • Merge streaming tool call deltas by index in OpenAiChatModel #​6381
  • reasoningContent in metadata is always null when calling DeepSeek model via OpenAI API #​6375
  • Fix genai thinking level validation #​6339
  • Fix Microsoft Foundry URL path mode for proxy hosts #​6180
  • Perform Optional unwrapping in OpenAiChatModel#buildGeneration #​6009
  • Fix Streamable HTTP WebClient transport to accept SSE frames without event field #​5783

📔 Documentation

  • Fix inaccurate Content interface Javadoc #​6704
  • Document conversation ID scoping for chat memory #​6651
  • Fix OpenAI audio documentation title and broken link #​6606
  • Restructure structured-output documentation #​6495
  • Restore the CosmosDBChatMemoryRepository section #​6491
  • Fix typos in McpTool JavaDoc comments #​6449
  • Restructure tool calling reference docs #​6432
  • Remove ToolSearchToolCallingAdvisor for upgrade notes #​6421
  • Fix dead JavaDoc link in upgrade notes #​6419
  • Update outdated Pinecone free-tier namespace notes #​6383
  • Fix duplicate "is is" typo in openai-chat.adoc #​6037
  • Update Ollama OpenAI API compatibility example to use builder pattern #​5999

🔨 Dependency Upgrades

  • Delegate Maven plugin versions to Spring Boot BOM #​6586
  • Align gRPC version management with Spring Boot #​6585
  • Upgrade Milvus java client to 2.6.21 #​6503
  • Upgrade pinecone client to 6.2.0 #​6496
  • Upgrade qdrant client to 1.18.0 #​6494

❤️ Contributors

Thank you to all the contributors who worked on this release:

@​DragonFSKY, @​EvanYao826, @​JamesBLewis, @​MKP999, @​OneZero-Y, @​OreOreDa, @​Seol-JY, @​TimurRakhmatullin86, @​YashRL, @​ZhangDT-sky, @​angus-guo, @​chaechaepower, @​chemicL, @​dimitarproynov, @​ericbottard, @​gaoxiaolei-s59, @​gh7035, @​guanxuc, @​hutiefang76, @​ilayaperumalg, @​iuliiasobolevska, @​jewoodev, @​kamalcis, @​kezhenxu94, @​leeworms, @​liushenling2001, @​nicolaskrier, @​prachipanditrao, @​pyg410, @​quaff, @​rea9r, @​sdeleuze, @​sdudzin, @​seeun0210, @​sobychacko, @​strogiyotec, @​subhashpolisetti, @​thjanssen, @​tzolov, @​ultramancode, and @​yyyCode

v2.0.0: Spring AI 2.0.0

For upgrading from 1.1.x to 2.0.0, please refer to the upgrade notes here.

For the detailed reference documentation on 2.0.0, please refer here

⭐ New Features

  • Update Google GenAI models #​6406
  • Use only Jackson 2 in OpenAiChatModel #​6392
  • Make org.springframework.ai.image.observation null-marked #​6388
  • Polish Prompt #​6387
  • Preserve OpenAI tool call additional properties #​6365

🐞 Bug Fixes

  • Filter unsupported tool messages in CassandraChatMemoryRepository #​6400
  • Filter unsupported tool messages in MongoChatMemoryRepository #​6399
  • Filter unsupported tool messages in JdbcChatMemoryRepository #​6398
  • Remove streamToolCallResponses from advisor builders #​6391
  • Add missing promptCacheKey parameter in OpenAiChatOptions #​6380

📔 Documentation

  • Update reference docs to reflect 2.0 API changes #​6405
  • Add more guides #​6401
  • Introduce CLAUDE.md and AGENTS.md #​6376
  • Consolidate upgrade notes for 2.0.0 #​6333

🔨 Dependency Upgrades

❤️ Contributors

Thank you to all the contributors who worked on this release:

@​ericbottard, @​guanxuc, @​ilayaperumalg, @​sdeleuze, @​sdudzin, @​tzolov, and @​ultramancode


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Update dependencies label Jun 13, 2026
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch from ea78f22 to 9db8a63 Compare June 13, 2026 18:48
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 12 times, most recently from 880b759 to ace5cbe Compare July 18, 2026 05:48
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch from ace5cbe to e6b2ffb Compare July 21, 2026 18:46
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 3 times, most recently from 9c10ad9 to 4cd9ea2 Compare August 5, 2026 04:35
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 3 times, most recently from 7b12a51 to e0cebae Compare August 12, 2026 10:48
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 5 times, most recently from ece0982 to ebf1047 Compare August 20, 2026 16:16
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 2 times, most recently from 468181e to 9a3f788 Compare August 28, 2026 07:42
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 2 times, most recently from 5a91f22 to 4afd45f Compare September 5, 2026 02:41
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 4 times, most recently from 8ae045f to 2e12524 Compare September 11, 2026 05:55
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 2 times, most recently from 23e9835 to bf0a857 Compare September 16, 2026 05:16
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 3 times, most recently from ed2715a to f50c63c Compare September 26, 2026 04:46
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 4 times, most recently from d957f6a to 9dc7952 Compare October 9, 2026 08:34
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 2 times, most recently from 297cf93 to 3f87ba4 Compare October 20, 2026 20:13
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 2 times, most recently from c7e26d9 to ed01d89 Compare October 22, 2026 23:24
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch from ed01d89 to 2238791 Compare November 3, 2026 02:43
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch 5 times, most recently from a72fa6a to fb91b0b Compare November 21, 2026 21:09
@renovate
renovate Bot force-pushed the renovate/major-spring.ai branch from fb91b0b to 85a19c2 Compare November 22, 2026 02:24

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Update dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants