summaryrefslogtreecommitdiff
path: root/internal/cli/command_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-08 10:14:40 +0300
committerPaul Buetow <paul@buetow.org>2026-04-08 10:14:40 +0300
commitf7deedf50f6fa00c7dfe989ed381989e202b3057 (patch)
tree72fe642a99101da79d2103af911c8dcf88b08484 /internal/cli/command_test.go
parent14995ca7a76e2a72a2169def7f55f3b9e2433ee2 (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/cli/command_test.go')
0 files changed, 0 insertions, 0 deletions