Skip to content

Add automatic API key fallback for dictation - #2461

Open
Ker102 wants to merge 6 commits into
OpenWhispr:mainfrom
Ker102:feature/dictation-model-fallbacks
Open

Ker102 wants to merge 6 commits into
OpenWhispr:mainfrom
Ker102:feature/dictation-model-fallbacks

Conversation

@Ker102

@Ker102 Ker102 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Adds backup API keys for transcription and dictation cleanup. If a key hits its quota or rate limit, OpenWhispr can try another saved key with the same provider and model. You can also choose other providers or downloaded local models, in order. Each new dictation starts with the primary key again.

Fallback has separate switches for transcription and cleanup, both off by default. Keys use the existing encrypted storage. The branch is up to date with main. The CodeQL hostname warnings in the tests are fixed too.

The latest update passed 77 affected checks using the bundled Node runtime. Typecheck, lint, translation checks, formatting and the renderer build also passed. Live provider requests and packaged app testing still need checking.

Closes #2542. Related to #1190 for local-model fallback.

@Ker102 Ker102 changed the title Add optional provider, model and key fallbacks for dictation Add automatic API key fallback for dictation Oct 2, 2026
@Ker102
Ker102 marked this pull request as ready for review October 4, 2026 12:20
@Ker102

Ker102 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Hey! Just checking in on this one. Is API key fallback something you'd consider merging? Happy to rework it, trim it down, or split it up if a different approach fits better. CI is green and it's up to date with main as of the last push.

…168c09

# Conflicts:
#	src/components/SettingsPage.tsx
#	src/helpers/audioManager.js
#	src/locales/ar/translation.json
#	src/locales/de/translation.json
#	src/locales/en/translation.json
#	src/locales/es/translation.json
#	src/locales/fr/translation.json
#	src/locales/it/translation.json
#	src/locales/ja/translation.json
#	src/locales/pt/translation.json
#	src/locales/ru/translation.json
#	src/locales/zh-CN/translation.json
#	src/locales/zh-TW/translation.json
#	src/services/ReasoningService.ts
#	src/services/ai/inferenceProviders/openai.ts
#	src/services/ai/inferenceProviders/tinfoil.ts
…168c09

# Conflicts:
#	src/stores/settingsStore.ts
@greatcoat greatcoat added enhancement New feature or request Dictation labels Nov 5, 2026 — with Claude

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dictation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically try backup API keys for dictation

3 participants