Bug description The SpringAiRetryAutoConfiguration configures the retry template with: .retryOn(NonTransientAiException.class) which doesn't seem correct.
As a matter of facts, in the RetryUtils, the object DEFAULT_RETRY_TEMPLATE is configured with: .retryOn(TransientAiException.class)
Comment From: devholic22
@RikJux When I looked at RetryUtils' DEFAULT_RETRY_TEMPLATE code (47 line), it was also TransientAiException
, so I think we should change it to TransientAiException
as you said. This is because the properties of RetryTemplates to be delivered as default values should be unified. I want to try to solve this problem if possible, but I think it might be a little sensitive, so I hope managers see this issue.