chore: comment
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
commit685c81bd7c1d5d601c4c6d65608caf08e106e51f
authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com>
dateWed 24 Sep 2025, 14:30 (1 year ago)
parent9365343
internal/llm/provider/anthropic.go+1
@@ -507,6 +507,7 @@ func (a *anthropicClient) shouldRetry(attempts int, err error) (bool, int64, err
507507 }
508508
509509 isOverloaded := strings.Contains(apiErr.Error(), "overloaded") || strings.Contains(apiErr.Error(), "rate limit exceeded")
510+ // 529 (unofficial): The service is overloaded
510511 if apiErr.StatusCode != http.StatusTooManyRequests && apiErr.StatusCode != 529 && !isOverloaded {
511512 return false, 0, err
512513 }