Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
34 lines
2.2 KiB
Plaintext
34 lines
2.2 KiB
Plaintext
# Spring AI 2.1 upgrade checklist: legacy-app
|
|
|
|
[ ] ChatMemory API: deprecated, removed in 3.0.0 (move to sessions)
|
|
src/main/java/com/ankurm/legacy/SupportBot.java:11: public String ask(ChatClient.Builder builder, ChatMemory memory, String user, String question) {
|
|
src/main/java/com/ankurm/legacy/SupportBot.java:12: return builder.defaultAdvisors(MessageChatMemoryAdvisor.builder(memory).build())
|
|
src/main/java/com/ankurm/legacy/SupportBot.java:16: .advisors(a -> a.param(ChatMemory.CONVERSATION_ID, user))
|
|
src/main/java/com/ankurm/legacy/SupportBot.java:5:import org.springframework.ai.chat.client.advisor.MessageChatMemoryAdvisor;
|
|
src/main/java/com/ankurm/legacy/SupportBot.java:6:import org.springframework.ai.chat.memory.ChatMemory;
|
|
|
|
[ ] Chat memory modules and properties
|
|
pom.xml:47: <artifactId>spring-ai-autoconfigure-model-chat-memory-redis</artifactId>
|
|
|
|
[ ] Chat memory properties (JDBC ones have spring.ai.session replacements)
|
|
src/main/resources/application.properties:2:spring.ai.chat.memory.redis.host=localhost
|
|
src/main/resources/application.properties:3:spring.ai.chat.memory.repository.jdbc.initialize-schema=always
|
|
|
|
[ ] Anthropic sampling options: discarded with a WARN on 2.1.0
|
|
src/main/java/com/ankurm/legacy/SupportBot.java:24: .temperature(0.2)
|
|
src/main/java/com/ankurm/legacy/SupportBot.java:25: .topK(40)
|
|
|
|
[ ] Anthropic sampling properties
|
|
src/main/resources/application.properties:1:spring.ai.anthropic.chat.temperature=0.2
|
|
|
|
[ ] Token arithmetic on cache counters: prompt tokens include them since 2.0.3
|
|
src/main/java/com/ankurm/legacy/SupportBot.java:31: return usage.getPromptTokens() + usage.getCacheReadInputTokens() + usage.getCacheWriteInputTokens();
|
|
|
|
[ ] Spring AI and Spring Boot versions
|
|
pom.xml:21: <spring-ai.version>2.0.0</spring-ai.version>
|
|
pom.xml:28: <artifactId>spring-ai-bom</artifactId>
|
|
pom.xml:29: <version>${spring-ai.version}</version>
|
|
pom.xml:9: <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
A hit is a place to read, not proof of a problem. No hit is not proof of safety.
|