Skip to content

fix(stt): map cloud-only model names to valid local size for faster-whisper (#2544)#13016

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-bd16abe6
Apr 20, 2026
Merged

fix(stt): map cloud-only model names to valid local size for faster-whisper (#2544)#13016
teknium1 merged 1 commit into
mainfrom
hermes/hermes-bd16abe6

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

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 default
  • tests/tools/test_transcription.py: 6 new tests (mapping, preservation, warning, integration)
  • scripts/release.py: lowercase AUTHOR_MAP alias for @Mibayy

Validation

Before After
stt.model: whisper-1 + local provider Invalid model size 'whisper-1', voice silently ignored Maps to base, warns in log, transcription works

26/26 transcription tests pass.

Closes #2544
Supersedes #2545, #2731, #11618

…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Local STT provider crashes when config contains OpenAI model name ("whisper-1")

2 participants