Skip to content

Add retries even for models without fallbacks#1886

Merged
dgageot merged 1 commit intodocker:mainfrom
rumpl:retries
Mar 3, 2026
Merged

Add retries even for models without fallbacks#1886
dgageot merged 1 commit intodocker:mainfrom
rumpl:retries

Conversation

@rumpl
Copy link
Member

@rumpl rumpl commented Mar 2, 2026

No description provided.

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@rumpl rumpl requested a review from a team as a code owner March 2, 2026 16:04
Copy link

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

LGTM - This PR successfully adds retry support for models without fallbacks and handles transient Anthropic 529 errors.

The changes are well-implemented with:

  • Proper HTTP 529 status code handling for Anthropic overloaded errors
  • New retryable error patterns for network/connection issues
  • Updated behavior to provide default retries even without fallback models
  • Comprehensive test coverage for the new functionality

The logic changes are intentional and well-documented. The new retry behavior provides better resilience against transient errors.

@dgageot dgageot merged commit 796af82 into docker:main Mar 3, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants