hermes - 💡(How to fix) Fix Feature Request: Configurable model provider retry interval / backoff

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Add a configurable retry/backoff interval setting for model provider API calls. Currently when a provider returns a transient error or times out, the retry behavior has no user-configurable delay between attempts.

Code Example

model:
  retry_interval: 3     # seconds between retry attempts (default: 0)
  max_retries: 3         # max retries before fallback kicks in
  backoff_multiplier: 2  # exponential: 3s -> 6s -> 12s (default: 1, no backoff)
RAW_BUFFERClick to expand / collapse

Feature Description

Add a configurable retry/backoff interval setting for model provider API calls. Currently when a provider returns a transient error or times out, the retry behavior has no user-configurable delay between attempts.

Motivation

Some providers (especially smaller or high-traffic inference endpoints) can be flaky with intermittent timeouts. Having a configurable delay between retries would help in two ways:

  1. Reduce provider rate-limit hammering — when the endpoint is under load, immediate retries make things worse. A 5-10s backoff gives it breathing room.
  2. Better UX on unstable connections — instead of rapid-fail -> fallback chain, the user could tune a small delay that lets the primary provider recover naturally before falling over to an auxiliary model.

Proposed Solution

A new config key under model section, something like:

model:
  retry_interval: 3     # seconds between retry attempts (default: 0)
  max_retries: 3         # max retries before fallback kicks in
  backoff_multiplier: 2  # exponential: 3s -> 6s -> 12s (default: 1, no backoff)

This would slot in naturally with the existing fallback_providers / fallback_models system — exhaust retries first, then fall through to the auxiliary models.

Alternatives Considered

  • Keep status quo — rapid retries then immediate fallback. Works but can be wasteful when the primary provider would recover with a small pause.
  • Provider-side fix — not every inference endpoint offers configurable retry behavior at the API level.

Happy to help test or provide more detail if this direction makes sense!

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Feature Request: Configurable model provider retry interval / backoff