fix(transcription): honor configured default provider#3883
Merged
theonlyhennygod merged 1 commit intozeroclaw-labs:masterfrom Mar 20, 2026
Merged
Conversation
theonlyhennygod
approved these changes
Mar 20, 2026
Collaborator
theonlyhennygod
left a comment
There was a problem hiding this comment.
LGTM. Properly dispatches on the configured default_provider instead of always using Groq, with clear error messages and a test covering the openai path.
webhive
pushed a commit
to webhive/zeroclaw
that referenced
this pull request
Mar 24, 2026
…3883) Co-authored-by: Artem Chernenko <12207348+turboazot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Describe this PR in 2-5 bullets:
masterfor all contributions):mastertranscribe_audio()helper, which always instantiatedGroqProviderand ignoredtranscription.default_provider[transcription.openai]was configured correctlytranscribe_audio()now dispatches bytranscription.default_provideracross the supported STT backends and adds a focused regression test for the OpenAI pathLabel Snapshot (required)
risk: low|medium|high):risk: mediumsize: XS|S|M|L|XL, auto-managed/read-only):size: Score|agent|channel|config|cron|daemon|doctor|gateway|health|heartbeat|integration|memory|observability|onboard|provider|runtime|security|service|skillforge|skills|tool|tunnel|docs|dependencies|ci|tests|scripts|dev, comma-separated):channel,tests<module>: <component>, for examplechannel: telegram,provider: kimi,tool: shell):channel: telegram,channel: whatsapp_webtrusted contributor|experienced contributor|principal contributor|distinguished contributor, auto-managed/read-only; author merged PRs >=5/10/20/50): auto-managedChange Metadata
bug|feature|refactor|docs|security|chore):bugruntime|provider|channel|memory|security|ci|docs|multi):channelLinked Issue
Supersede Attribution (required when
Supersedes #is used)#<pr> by @<author>, one per line): N/ACo-authored-bytrailers added for materially incorporated contributors? (Yes/No): NoNo, explain why (for example: inspiration-only, no direct code/design carry-over): No superseded PR in this change\n): (Pass/Fail): PassValidation Evidence (required)
Commands and result summary:
cargo fmt --all -- --check cargo clippy --all-targets -- -D warnings cargo testcargo fmt --all -- --check: Passcargo test openai_default_provider_uses_openai_config --lib: Passcargo test manager_default_provider_from_config --lib: Passcargo clippy --all-targets -- -D warningsand fullcargo testwere not run in this turn; focused regression coverage was used to validate the targeted bug fix before local release-fast rebuild/restartSecurity Impact (required)
Yes/No): NoYes/No): NoYes/No): NoYes/No): NoYes, describe risk and mitigation: N/APrivacy and Data Hygiene (required)
pass|needs-follow-up):passCompatibility / Migration
Yes/No): YesYes/No): NoYes/No): Noi18n Follow-Through (required when docs or user-facing wording changes)
Yes/No): NoYes, locale navigation parity updated inREADME*,docs/README*, anddocs/SUMMARY.mdfor supported locales (en,zh-CN,ja,ru,fr,vi)? (Yes/No): N/AYes, localized runtime-contract docs updated where equivalents exist (minimum forfr/vi:commands-reference,config-reference,troubleshooting)? (Yes/No/N.A.): N/AYes, Vietnamese canonical docs underdocs/i18n/vi/**synced and compatibility shims underdocs/*.vi.mdvalidated? (Yes/No/N.A.): N/ANo/N.A., link follow-up issue/PR and explain scope decision: N/AHuman Verification (required)
What was personally validated beyond CI:
cargo test/clippyrun and end-to-end Telegram voice-message transcription against a live OpenAI STT request in upstream CI contextSide Effects / Blast Radius (required)
default_providervia the legacy helper pathVoice transcription failedwith provider-specific errorsAgent Collaboration Notes (recommended)
AGENTS.md+CONTRIBUTING.md): YesRollback Plan (required)
3d0872c1or revert this PRRisks and Mitigations
List real risks in this PR (or write
None).TranscriptionManager