diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-08 10:14:40 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-08 10:14:40 +0300 |
| commit | f7deedf50f6fa00c7dfe989ed381989e202b3057 (patch) | |
| tree | 72fe642a99101da79d2103af911c8dcf88b08484 /internal/processor/cli_config_resolver.go | |
| parent | 14995ca7a76e2a72a2169def7f55f3b9e2433ee2 (diff) | |
feat: add gobreaker circuit breakers for OpenAI and Gemini API calls
Introduce internal/apicircuit with sony/gobreaker: trip after five
consecutive failures, 45s open state, 2m count reset, half-open trial cap.
context.Canceled is not counted as a failure for breaker stats.
Wrap OpenAI TTS, Gemini TTS, OpenAI DALL-E/chat (image path), and Nano Banana
Gemini GenerateContent calls. HTTP timeouts remain unchanged in httpctx.
Made-with: Cursor
Diffstat (limited to 'internal/processor/cli_config_resolver.go')
0 files changed, 0 insertions, 0 deletions
