Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class SpringAiRetryAutoConfiguration {
@ConditionalOnMissingBean
public RetryTemplate retryTemplate(SpringAiRetryProperties properties) {
RetryPolicy retryPolicy = RetryPolicy.builder()
.maxAttempts(properties.getMaxAttempts())
.maxRetries(properties.getMaxAttempts())
.includes(TransientAiException.class)
.includes(ResourceAccessException.class)
.delay(properties.getBackoff().getInitialInterval())
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
<kotlin.compiler.version>2.2.21</kotlin.compiler.version>

<!-- production dependencies -->
<spring-boot.version>4.0.0-RC2</spring-boot.version>
<spring-boot.version>4.0.0</spring-boot.version>
<ST4.version>4.3.4</ST4.version>
<azure-open-ai-client.version>1.0.0-beta.16</azure-open-ai-client.version>
<jtokkit.version>1.1.0</jtokkit.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void handleError(final @NonNull ClientHttpResponse response) throws IOExc

private static RetryTemplate createDefaultRetryTemplate() {
RetryPolicy retryPolicy = RetryPolicy.builder()
.maxAttempts(DEFAULT_MAX_ATTEMPTS)
.maxRetries(DEFAULT_MAX_ATTEMPTS)
.includes(TransientAiException.class)
.includes(ResourceAccessException.class)
.delay(Duration.ofMillis(DEFAULT_INITIAL_INTERVAL))
Expand Down Expand Up @@ -137,7 +137,7 @@ public void onRetryFailure(final RetryPolicy policy, final Retryable<?> retryabl
*/
private static RetryTemplate createShortRetryTemplate() {
RetryPolicy retryPolicy = RetryPolicy.builder()
.maxAttempts(DEFAULT_MAX_ATTEMPTS)
.maxRetries(DEFAULT_MAX_ATTEMPTS)
.includes(TransientAiException.class)
.includes(ResourceAccessException.class)
.delay(Duration.ofMillis(SHORT_INITIAL_INTERVAL))
Expand Down
Loading