Croway opened a new pull request, #30444:
URL: https://github.com/apache/camel/pull/30444

   [CAMEL-27241](https://issues.apache.org/jira/browse/CAMEL-27241)
   
   ## Description
   
   Upgrades the Spring AI components to Spring AI 2.1.0, released on 2026-11-19.
   
   - `spring-ai-version` 2.0.2 -> 2.1.0. The Spring AI 2.1.0 BOM manages MCP 
Java SDK 2.2.0, the version of `mcp-java-sdk-version`, so 
`camel-spring-ai-chat` now resolves SDK 2.2.0 instead of 2.1.0.
   - Upgrade guide 4.24, section "camel-spring-ai - Spring AI 2.1.0", with the 
changes that show through Camel:
     - the Anthropic chat model ignores `temperature`, `topP` and 
`topKSampling`, and sends the API key as `Authorization: Bearer`;
     - the chat models return one generation of ordered message parts, so the 
body of `spring-ai-chat` is the whole answer (with Google GenAI and 
`includeThoughts` it was the first thought, with Bedrock Converse only the 
first text block);
     - with an `entityClass`, a request that the SafeGuard advisor refuses no 
longer fails with a JSON parsing error of the refusal text: the body is `null` 
and `CamelSpringAiChatFinishReason` is `guardrailRefusal`.
   - `SpringAiChatSafeGuardEntityTest` covers the last point. It fails on 2.0.2 
with the parsing error and passes on 2.1.0.
   
   Spring AI 2.1.0 is built on Spring Boot 4.2 and Spring Framework 7.1. The 
Camel components also pass their tests on the current Spring Framework 7.0.10, 
so this does not wait for the Spring Boot 4.2 upgrade (CAMEL-26590).
   
   New deprecation warnings: `ChatMemory` and `MessageChatMemoryAdvisor` are 
deprecated for removal in Spring AI 3.0. CAMEL-27243 adds session memory to 
`spring-ai-chat` for that.
   
   Follow-ups that need this upgrade, ready on branches: CAMEL-27242 
(vector-store UPSERT), CAMEL-27243 (session memory), CAMEL-27245 
(spring-ai-decision component), CAMEL-27247 (finish reason category and 
reasoning headers). In camel-spring-boot, the MCP server starter must stop 
sending its own `notifications/resources/list_changed` on template removal, 
since SDK 2.2.0 sends it; that PR follows once this one is merged and a 
snapshot is published.
   
   ## Tests
   
   `mvn verify -DskipITs` with Spring AI 2.1.0, building 
`camel-ai-observability-api` and `camel-ai-observability` in the same reactor:
   
   | Module | Tests |
   |---|---|
   | camel-spring-ai-chat | 45 pass |
   | camel-spring-ai-embeddings | 17 pass |
   | camel-spring-ai-vector-store | 19 pass |
   | camel-spring-ai-image | 9 pass |
   
   The camel-spring-boot `camel-mcp-server-starter` passes its 55 tests with 
Spring AI 2.1.0, Spring Boot 4.2.0 and Spring Framework 7.1.0.
   
   _Claude Code on behalf of Croway_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to