mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 10:16:49 +00:00
Add retry logic and connection pooling to GLMT proxy for handling Z.AI 429 rate limit errors gracefully. Changes: - Add RetryConfig with env vars (GLMT_MAX_RETRIES, GLMT_RETRY_BASE_DELAY, GLMT_DISABLE_RETRY) - Add exponential backoff with jitter and Retry-After header support - Add forwardWithRetry() and forwardAndStreamWithRetry() wrappers - Add HTTPS connection pooling via shared https.Agent - Add comprehensive unit tests (19 tests covering all scenarios) Fixes: #402