Drop the with prefix of Spring AI builder methods
ProprietarySpring AI 1.0.0-M6 removed the withX(..) methods of its options, document, metadata and advisor builders in favour of x(..), such as OpenAiChatOptions.builder().withModel("gpt-4o") becoming OpenAiChatOptions.builder().model("gpt-4o"). A float literal passed to an option Spring AI now takes as a Double, such as the temperature, becomes a double literal. OllamaOptions is changed only where it is built with OllamaOptions.builder(), since its withX(..) methods were instance methods.
io. moderne. java. spring. ai1. MigrateWithBuilderMethodsmod run . --recipe= io. moderne. java. spring. ai1. MigrateWithBuilderMethodsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.