fix(stt): map cloud-only model names to valid local size for faster-whisper (#2544)#13016
Merged
Conversation
…hisper (#2544) Cherry-picked from PR #2545 by @Mibayy. The setup wizard could leave stt.model: "whisper-1" in config.yaml. When using the local faster-whisper provider, this crashed with "Invalid model size 'whisper-1'". Voice messages were silently ignored. _normalize_local_model() now detects cloud-only names (whisper-1, gpt-4o-transcribe, etc.) and maps them to the default local model with a warning. Valid local sizes (tiny, base, small, medium, large-v3) pass through unchanged. - Renamed _normalize_local_command_model -> _normalize_local_model (backward-compat wrapper preserved) - 6 new tests including integration test - Added lowercase AUTHOR_MAP alias for @Mibayy Closes #2544
This was referenced Apr 20, 2026
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
Local STT no longer crashes when config contains a cloud-only model name like
whisper-1. Maps it to the default local model with a warning.Cherry-picked from PR #2545 by @Mibayy onto current main.
Changes
tools/transcription_tools.py:_normalize_local_model()validates model names before passing to faster-whisper, maps cloud names to defaulttests/tools/test_transcription.py: 6 new tests (mapping, preservation, warning, integration)scripts/release.py: lowercase AUTHOR_MAP alias for @MibayyValidation
stt.model: whisper-1+ local providerInvalid model size 'whisper-1', voice silently ignoredbase, warns in log, transcription works26/26 transcription tests pass.
Closes #2544
Supersedes #2545, #2731, #11618