Skip to content

Commit a08d4c7

Browse files
tzolovricken07
authored andcommitted
Upgrade Boot to 4.0.0 GA
- fix breaking compilation issues Signed-off-by: Christian Tzolov <[email protected]>
1 parent 6887e63 commit a08d4c7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

auto-configurations/common/spring-ai-autoconfigure-retry/src/main/java/org/springframework/ai/retry/autoconfigure/SpringAiRetryAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class SpringAiRetryAutoConfiguration {
6464
@ConditionalOnMissingBean
6565
public RetryTemplate retryTemplate(SpringAiRetryProperties properties) {
6666
RetryPolicy retryPolicy = RetryPolicy.builder()
67-
.maxAttempts(properties.getMaxAttempts())
67+
.maxRetries(properties.getMaxAttempts())
6868
.includes(TransientAiException.class)
6969
.includes(ResourceAccessException.class)
7070
.delay(properties.getBackoff().getInitialInterval())

models/spring-ai-ollama/src/test/java/org/springframework/ai/ollama/OllamaChatModelMultimodalIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public OllamaApi ollamaApi() {
9494
@Bean
9595
public OllamaChatModel ollamaChat(OllamaApi ollamaApi) {
9696
RetryPolicy retryPolicy = RetryPolicy.builder()
97-
.maxAttempts(1)
97+
.maxRetries(1)
9898
.includes(TransientAiException.class)
9999
.delay(Duration.ofSeconds(1))
100100
.build();

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
<kotlin.compiler.version>2.2.21</kotlin.compiler.version>
278278

279279
<!-- production dependencies -->
280-
<spring-boot.version>4.0.0-RC2</spring-boot.version>
280+
<spring-boot.version>4.0.0</spring-boot.version>
281281
<ST4.version>4.3.4</ST4.version>
282282
<azure-open-ai-client.version>1.0.0-beta.16</azure-open-ai-client.version>
283283
<jtokkit.version>1.1.0</jtokkit.version>

spring-ai-retry/src/main/java/org/springframework/ai/retry/RetryUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void handleError(final @NonNull ClientHttpResponse response) throws IOExc
108108

109109
private static RetryTemplate createDefaultRetryTemplate() {
110110
RetryPolicy retryPolicy = RetryPolicy.builder()
111-
.maxAttempts(DEFAULT_MAX_ATTEMPTS)
111+
.maxRetries(DEFAULT_MAX_ATTEMPTS)
112112
.includes(TransientAiException.class)
113113
.includes(ResourceAccessException.class)
114114
.delay(Duration.ofMillis(DEFAULT_INITIAL_INTERVAL))
@@ -137,7 +137,7 @@ public void onRetryFailure(final RetryPolicy policy, final Retryable<?> retryabl
137137
*/
138138
private static RetryTemplate createShortRetryTemplate() {
139139
RetryPolicy retryPolicy = RetryPolicy.builder()
140-
.maxAttempts(DEFAULT_MAX_ATTEMPTS)
140+
.maxRetries(DEFAULT_MAX_ATTEMPTS)
141141
.includes(TransientAiException.class)
142142
.includes(ResourceAccessException.class)
143143
.delay(Duration.ofMillis(SHORT_INITIAL_INTERVAL))

0 commit comments

Comments
 (0)