• erio's avatar
    fix: use upstream retryDelay for rate limit duration instead of fixed default · 12515246
    erio authored
    - In handleSmartRetry, use the actual upstream retryDelay to set model
      rate limit duration instead of always using the 30s default
    - Return info.RetryDelay from shouldTriggerAntigravitySmartRetry when
      shouldRateLimitModel=true, so callers know the actual delay
    - Extract getDefaultRateLimitDuration() and resolveResetTime() helpers
      to reduce duplication in handleUpstreamError 429 handling
    - Improve debug logging with upstream_retry_delay and response body
    12515246
antigravity_gateway_service.go 124 KB