Migrate to Spring AI 1.1
ProprietaryMigrate applications to Spring AI 1.1, from Spring AI 1.0 or anything older that UpgradeSpringAi_1_0 migrates. This moves the OpenAI text-to-speech types to the provider-neutral org.springframework.ai.audio.tts API, replaces OllamaOptions with OllamaChatOptions, creates QuestionAnswerAdvisor through its builder, and upgrades Spring AI dependencies to 1.1.
io. moderne. java. spring. ai1. UpgradeSpringAi_1_1mod run . --recipe= io. moderne. java. spring. ai1. UpgradeSpringAi_1_1Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Migrate to Spring AI 1.0
- Change type
SpeechModeltoTextToSpeechModel - Change type
StreamingSpeechModeltoStreamingTextToSpeechModel - Change type
SpeechPrompttoTextToSpeechPrompt - Change type
SpeechResponsetoTextToSpeechResponse - Change type
SpeechMessagetoTextToSpeechMessage - Change type
org.springframework.ai.openai.audio.speech.Speechtoorg.springframework.ai.audio.tts.Speech - Change type
OllamaOptionstoOllamaChatOptions - Change Gradle or Maven dependency
org.springframework.ai:spring-ai-autoconfigure-mcp-client - Change Gradle or Maven dependency
org.springframework.ai:spring-ai-autoconfigure-mcp-server - Upgrade Gradle or Maven dependency versions
org.springframework.ai:*:1.1.x