Skip to content

The agent that grows with you

fix(stt): every model picker lists the runtime catalog; Mistral STT is selectable again

Teknium29caf43e1ea6
diff --git a/apps/desktop/src/app/settings/constants.ts b/apps/desktop/src/app/settings/constants.ts
index 4dd955dddb1..310ed1564a2 100644
--- a/apps/desktop/src/app/settings/constants.ts
+++ b/apps/desktop/src/app/settings/constants.ts
@@ -249,9 +249,9 @@ export const ENUM_OPTIONS: Record<string, string[]> = {
'terminal.backend': ['local', 'docker', 'singularity', 'modal', 'daytona', 'ssh'],
'stt.elevenlabs.model_id': ['scribe_v2', 'scribe_v1'],
'stt.local.model': ['tiny', 'base', 'small', 'medium', 'large-v3'],
- // Speech-to-text backends — kept in sync with the stt block in
- // hermes_cli/config.py (local/groq/openai/mistral/elevenlabs).
- 'stt.provider': ['local', 'groq', 'openai', 'mistral', 'xai', 'elevenlabs'],
+ // Speech-to-text backends — kept in sync with BUILTIN_STT_PROVIDERS in
+ // tools/transcription_common.py (local_command is auto-detected, not picked).
+ 'stt.provider': ['local', 'groq', 'openai', 'mistral', 'xai', 'elevenlabs', 'deepinfra'],
// How the desktop voice conversation is wired — tools/voice_live.py owns the
// gpt-live branch (one full-duplex voice model delegating to Hermes).
'voice.voice_chat_mode': ['chained', 'gpt-live'],
@@ -359,8 +359,11 @@ export const ENUM_OPTIONS: Record<string, string[]> = {
'kittentts',
'piper'
],
+ // STT model lists mirror STT_MODEL_CATALOG in tools/transcription_common.py.
'stt.openai.model': ['whisper-1', 'gpt-4o-mini-transcribe', 'gpt-4o-transcribe', 'gpt-transcribe'],
+ 'stt.groq.model': ['whisper-large-v3-turbo', 'whisper-large-v3'],
'stt.mistral.model': ['voxtral-mini-latest', 'voxtral-mini-2602'],
+ 'stt.xai.model': ['grok-voice-transcribe-2.0', 'grok-voice-transcribe-1.0'],
'tts.openai.model': ['gpt-4o-mini-tts', 'tts-1', 'tts-1-hd'],
'tts.elevenlabs.model_id': [
'eleven_v3',
@@ -389,6 +392,10 @@ export const FREE_INPUT_KEYS = new Set([
'tts.elevenlabs.voice_id',
'tts.elevenlabs.model_id',
'stt.openai.model',
+ 'stt.groq.model',
+ 'stt.mistral.model',
+ 'stt.xai.model',
+ 'stt.deepinfra.model',
'tts.gemini.model',
'tts.gemini.voice',
'tts.xai.voice_id',
@@ -491,6 +498,12 @@ export const FIELD_LABELS: Record<string, string> = defineFieldCopy({
mistral: {
model: 'Mistral STT Model'
},
+ xai: {
+ model: 'xAI STT Model'
+ },
+ deepinfra: {
+ model: 'DeepInfra STT Model'
+ },
elevenlabs: {
modelId: 'ElevenLabs STT Model',
languageCode: 'ElevenLabs Language',
@@ -800,6 +813,8 @@ export const SECTIONS: DesktopConfigSection[] = [
'stt.openai.model',
'stt.groq.model',
'stt.mistral.model',
+ 'stt.xai.model',
+ 'stt.deepinfra.model',
'stt.elevenlabs.model_id',
'stt.elevenlabs.language_code',
'stt.elevenlabs.tag_audio_events',
diff --git a/apps/desktop/src/app/settings/helpers.test.ts b/apps/desktop/src/app/settings/helpers.test.ts
index 570c3eec5b5..35c675f3bb6 100644
--- a/apps/desktop/src/app/settings/helpers.test.ts
+++ b/apps/desktop/src/app/settings/helpers.test.ts
@@ -253,7 +253,7 @@ describe('settings helpers', () => {
stt: {
provider: 'local',
providers: {
- // both are built-in STT names omitted from ENUM_OPTIONS['stt.provider']
+ // built-in STT names: local_command is unlisted, deepinfra is listed
local_command: { type: 'command', command: 'curl …' },
deepinfra: { type: 'command', command: 'curl …' },
myasr: { type: 'command', command: 'curl …' }
@@ -263,7 +263,8 @@ describe('settings helpers', () => {
const opts = enumOptionsFor('stt.provider', 'local', shadowing)
expect(opts).not.toContain('local_command')
- expect(opts).not.toContain('deepinfra')
+ // deepinfra is a listed built-in: it appears once, as the native provider.
+ expect(opts!.filter(o => o === 'deepinfra')).toHaveLength(1)
expect(opts).toContain('myasr')
})
})
diff --git a/hermes_cli/config_defaults.py b/hermes_cli/config_defaults.py
index d027c5a402b..969fc1ec875 100644
--- a/hermes_cli/config_defaults.py
+++ b/hermes_cli/config_defaults.py
@@ -1182,8 +1182,7 @@ DEFAULT_CONFIG = {
"unload_after_idle_seconds": 0, # 0 = never; e.g. 300 frees the model after 5min
},
"groq": {
- # whisper-large-v3, whisper-large-v3-turbo, distil-whisper-large-v3-en
- "model": "whisper-large-v3-turbo",
+ "model": "whisper-large-v3-turbo", # whisper-large-v3-turbo, whisper-large-v3
"language": "", # auto-detect; set "en", "es", ... to force
},
"openai": {
diff --git a/hermes_cli/tools_config.py b/hermes_cli/tools_config.py
index 67ba2353b3a..9debf361535 100644
--- a/hermes_cli/tools_config.py
+++ b/hermes_cli/tools_config.py
@@ -256,13 +256,13 @@ TOOL_CATEGORIES = {
stt_provider="openai", **_NOUS, managed_nous_feature="stt",
override_env_vars=["VOICE_TOOLS_OPENAI_KEY", "OPENAI_API_KEY"]),
_row("OpenAI", "paid", "whisper-1, gpt-4o-transcribe, gpt-transcribe", [_OPENAI_VOICE_KEY], stt_provider="openai"),
- _row("Groq", "free tier", "Whisper large-v3 family — very fast",
+ _row("Groq", "free tier", "whisper-large-v3-turbo, whisper-large-v3 — very fast",
[_key("GROQ_API_KEY", "Groq API key", "https://console.groq.com/keys")], stt_provider="groq"),
_row("xAI", tag="Grok Voice Transcribe — uses xAI Grok OAuth or XAI_API_KEY", stt_provider="xai", post_setup="xai_grok"),
_row("ElevenLabs Scribe", "paid", "scribe_v2 — diarization + audio-event tagging", [_ELEVENLABS_KEY],
stt_provider="elevenlabs"),
- # Mistral Voxtral STT intentionally omitted — mistralai PyPI package quarantined (malicious 2.4.6
- # release, 2026-05-12). Restore alongside the dashboard stt.provider option.
+ _row("Mistral Voxtral", "paid", "voxtral-mini-latest — multilingual",
+ [_key("MISTRAL_API_KEY", "Mistral API key", "https://console.mistral.ai/")], stt_provider="mistral"),
_row("DeepInfra", "paid", "Live STT catalog from api.deepinfra.com", [_DEEPINFRA_KEY], stt_provider="deepinfra"),
],
},
diff --git a/hermes_cli/tools_config_providers.py b/hermes_cli/tools_config_providers.py
index 217391ff025..6bd4a182bba 100644
--- a/hermes_cli/tools_config_providers.py
+++ b/hermes_cli/tools_config_providers.py
@@ -15,6 +15,7 @@ from hermes_cli.config import cfg_get, get_env_value, load_config, save_config,
from hermes_cli.nous_account import format_nous_portal_entitlement_message
from hermes_cli.nous_subscription import MANAGED_FEATURE_COVERAGE_CATEGORY, NousSubscriptionFeatures
from tools.tool_backend_helpers import NOUS_MANAGED_PROVIDER, fal_key_is_configured
+from tools.transcription_common import STT_MODEL_CATALOG, STT_MODEL_CONFIG_KEY
from utils import base_url_hostname, is_truthy_value
logger = logging.getLogger("hermes_cli.tools_config")
@@ -707,28 +708,18 @@ def _select_plugin_gen_provider(section: str, plugin_name: str, config: dict, *,
_select_plugin_image_gen_provider = partial(_select_plugin_gen_provider, "image_gen")
_select_plugin_video_gen_provider = partial(_select_plugin_gen_provider, "video_gen")
-# Per-provider STT model catalogs for the picker; keys are ``stt.<provider>`` sections, first entry is the
-# default. Kept in sync with the dashboard selects (web_server _CONFIG_FIELD_META) and the desktop settings
-# enums (apps/desktop/src/app/settings/constants.ts).
-STT_MODEL_CATALOG = {
- "local": ["base", "tiny", "small", "medium", "large-v3"],
- "groq": ["whisper-large-v3-turbo", "whisper-large-v3", "distil-whisper-large-v3-en"],
- "openai": ["whisper-1", "gpt-4o-mini-transcribe", "gpt-4o-transcribe", "gpt-transcribe"],
- "elevenlabs": ["scribe_v2", "scribe_v1"]}
-
-# ElevenLabs historically uses ``model_id`` instead of ``model``.
-_STT_MODEL_CONFIG_KEY = {"elevenlabs": "model_id"}
-
-
def _configure_stt_model(stt_provider: str, config: dict) -> None:
- """Prompt for the STT model after a provider pick (when a catalog exists)."""
+ """Prompt for the STT model after a provider pick (static catalog, or DeepInfra's live one)."""
from hermes_cli.tools_config import _cfg_section, _prompt_choice
catalog = STT_MODEL_CATALOG.get(stt_provider)
+ if catalog is None and stt_provider == "deepinfra":
+ from hermes_cli.models import deepinfra_model_ids
+ catalog = deepinfra_model_ids("stt")
if not catalog:
return
prov_cfg = _cfg_section(_cfg_section(config, "stt"), stt_provider)
- model_key = _STT_MODEL_CONFIG_KEY.get(stt_provider, "model")
+ model_key = STT_MODEL_CONFIG_KEY.get(stt_provider, "model")
current = str(prov_cfg.get(model_key) or "").strip()
ordered = list(catalog)
chosen = ordered[_prompt_choice(" Select STT model:", ordered, ordered.index(current) if current in ordered else 0)]
diff --git a/hermes_cli/web_server_config.py b/hermes_cli/web_server_config.py
index 6de516ba35e..11dd4b0d0c4 100644
--- a/hermes_cli/web_server_config.py
+++ b/hermes_cli/web_server_config.py
@@ -15,6 +15,7 @@ from hermes_cli.config import (
read_raw_config,
)
from hermes_cli.web_server_memory import _normalize_memory_provider_name
+from tools.transcription_common import STT_MODEL_CATALOG
from tools.wake_word import _PROVIDER_PREFERENCE
if TYPE_CHECKING:
@@ -123,17 +124,14 @@ _SCHEMA_OVERRIDES: Dict[str, Dict[str, Any]] = {
"Text-to-speech provider",
"edge", "elevenlabs", "openai", "xai", "minimax", "mistral", "gemini", "neutts", "kittentts", "piper",
),
- # "mistral" temporarily removed — mistralai PyPI package quarantined
- # (malicious 2.4.6 release on 2026-05-12). Restore once available.
- "stt.provider": _select("Speech-to-text provider", "local", "groq", "openai", "xai", "elevenlabs"),
+ "stt.provider": _select(
+ "Speech-to-text provider", "local", "groq", "openai", "mistral", "xai", "elevenlabs", "deepinfra"),
"stt.local.model": _select("Local faster-whisper model size", "tiny", "base", "small", "medium", "large-v3"),
- "stt.groq.model": _select(
- "Groq Whisper model", "whisper-large-v3-turbo", "whisper-large-v3", "distil-whisper-large-v3-en"
- ),
- "stt.openai.model": _select(
- "OpenAI transcription model", "whisper-1", "gpt-4o-mini-transcribe", "gpt-4o-transcribe", "gpt-transcribe"
- ),
- "stt.elevenlabs.model_id": _select("ElevenLabs Scribe model", "scribe_v2", "scribe_v1"),
+ "stt.groq.model": _select("Groq Whisper model", *STT_MODEL_CATALOG["groq"]),
+ "stt.openai.model": _select("OpenAI transcription model", *STT_MODEL_CATALOG["openai"]),
+ "stt.mistral.model": _select("Mistral Voxtral transcription model", *STT_MODEL_CATALOG["mistral"]),
+ "stt.xai.model": _select("xAI transcription model", *STT_MODEL_CATALOG["xai"]),
+ "stt.elevenlabs.model_id": _select("ElevenLabs Scribe model", *STT_MODEL_CATALOG["elevenlabs"]),
"display.skin": _select("CLI visual theme", "default", "ares", "mono", "slate"),
"dashboard.theme": _select(
"Web dashboard visual theme", "default", "midnight", "ember", "mono", "cyberpunk", "rose"
diff --git a/tests/hermes_cli/test_stt_picker.py b/tests/hermes_cli/test_stt_picker.py
index b4d77000725..5b858c61214 100644
--- a/tests/hermes_cli/test_stt_picker.py
+++ b/tests/hermes_cli/test_stt_picker.py
@@ -58,11 +58,22 @@ class TestActiveDetection:
class TestModelPicker:
- def test_catalog_matches_runtime_model_sets(self):
- from tools.transcription_common import GROQ_MODELS, OPENAI_MODELS
-
- assert set(STT_MODEL_CATALOG["openai"]) == OPENAI_MODELS
- assert set(STT_MODEL_CATALOG["groq"]) == GROQ_MODELS
+ def test_every_model_picker_lists_the_runtime_catalog(self):
+ """Dashboard selects and Desktop suggestions offer exactly STT_MODEL_CATALOG per cloud provider."""
+ import re
+
+ from hermes_cli.web_server_config import _SCHEMA_OVERRIDES
+ from tools.transcription_common import BUILTIN_STT_PROVIDERS, STT_MODEL_CONFIG_KEY
+
+ desktop = (Path(__file__).resolve().parents[2] / "apps/desktop/src/app/settings/constants.ts").read_text()
+ for provider, models in STT_MODEL_CATALOG.items():
+ if provider == "local":
+ continue
+ key = f"stt.{provider}.{STT_MODEL_CONFIG_KEY.get(provider, 'model')}"
+ assert _SCHEMA_OVERRIDES[key]["options"] == models, key
+ listed = re.search(rf"'{re.escape(key)}': \[([^\]]*)\]", desktop)
+ assert listed and re.findall(r"'([^']+)'", listed.group(1)) == models, key
+ assert set(_SCHEMA_OVERRIDES["stt.provider"]["options"]) == BUILTIN_STT_PROVIDERS - {"local_command"}
def test_configure_stt_model_defaults_to_current(self):
config = {"stt": {"openai": {"model": "gpt-transcribe"}}}
diff --git a/tools/transcription_cloud.py b/tools/transcription_cloud.py
index c7d5709abba..b5d6f540c65 100644
--- a/tools/transcription_cloud.py
+++ b/tools/transcription_cloud.py
@@ -20,7 +20,8 @@ from utils import is_truthy_value
from tools.transcription_audio import _transcode_audio_for_stt
from tools.transcription_common import (
DEFAULT_GROQ_STT_MODEL, DEFAULT_STT_MODEL, ELEVENLABS_STT_BASE_URL,
- GROQ_BASE_URL, GROQ_MODELS, OPENAI_BASE_URL, OPENAI_MODELS, STTResponseError, XAI_STT_BASE_URL,
+ GROQ_BASE_URL, GROQ_MODELS, OPENAI_BASE_URL, OPENAI_MODELS, RETIRED_GROQ_MODELS, STTResponseError,
+ XAI_STT_BASE_URL,
_error_result, _get_stt_section, _lazy_ensure_quietly, _log_prompt_unsupported, _ok_result,
normalize_xai_stt_model)
@@ -104,7 +105,7 @@ def _transcribe_groq(
return _error_result("GROQ_API_KEY not set")
if not _HAS_OPENAI:
return _error_result("openai package not installed")
- if model_name in OPENAI_MODELS: # auto-correct an OpenAI-only model
+ if model_name in OPENAI_MODELS | RETIRED_GROQ_MODELS: # OpenAI-only or shut-down model
logger.info("Model %s not available on Groq, using %s", model_name, DEFAULT_GROQ_STT_MODEL)
model_name = DEFAULT_GROQ_STT_MODEL
language = language or _resolve_stt_language("groq")
@@ -142,7 +143,7 @@ def _transcribe_openai(
if not _HAS_OPENAI:
return _error_result("openai package not installed")
# Auto-correct a Groq-only model on the native OpenAI path only (third-party endpoints may serve it).
- if provider_label == "openai" and model_name in GROQ_MODELS:
+ if provider_label == "openai" and model_name in GROQ_MODELS | RETIRED_GROQ_MODELS:
logger.info("Model %s not available on OpenAI, using %s", model_name, DEFAULT_STT_MODEL)
model_name = DEFAULT_STT_MODEL
diff --git a/tools/transcription_common.py b/tools/transcription_common.py
index c783016f363..49ba1015123 100644
--- a/tools/transcription_common.py
+++ b/tools/transcription_common.py
@@ -41,9 +41,24 @@ SUPPORTED_FORMATS = {".mp3", ".mp4", ".mpeg", ".mpga", ".m4a", ".wav", ".webm",
LOCAL_NATIVE_AUDIO_FORMATS = {".wav", ".aiff", ".aif"}
MAX_FILE_SIZE = 25 * 1024 * 1024 # 25 MB
-# Known model sets for auto-correction
-OPENAI_MODELS = {"whisper-1", "gpt-4o-mini-transcribe", "gpt-4o-transcribe", "gpt-transcribe"}
-GROQ_MODELS = {"whisper-large-v3", "whisper-large-v3-turbo", "distil-whisper-large-v3-en"}
+# Per-provider model catalogs keyed by ``stt.<provider>`` section, default first. This one table
+# feeds the `hermes tools` picker, the dashboard selects and the auto-correction sets below.
+# DeepInfra has no static list: its picker reads the live catalog.
+STT_MODEL_CATALOG = {
+ "local": ["base", "tiny", "small", "medium", "large-v3"],
+ "groq": ["whisper-large-v3-turbo", "whisper-large-v3"],
+ "openai": ["whisper-1", "gpt-4o-mini-transcribe", "gpt-4o-transcribe", "gpt-transcribe"],
+ "mistral": ["voxtral-mini-latest", "voxtral-mini-2602"],
+ "xai": ["grok-voice-transcribe-2.0", "grok-voice-transcribe-1.0"],
+ "elevenlabs": ["scribe_v2", "scribe_v1"]}
+# ElevenLabs historically uses ``model_id`` instead of ``model``.
+STT_MODEL_CONFIG_KEY = {"elevenlabs": "model_id"}
+
+# Known model sets for auto-correction. Groq shut distil-whisper-large-v3-en down on
+# 2025-08-23 (console.groq.com/docs/deprecations); a config still naming it is remapped.
+OPENAI_MODELS = frozenset(STT_MODEL_CATALOG["openai"])
+GROQ_MODELS = frozenset(STT_MODEL_CATALOG["groq"])
+RETIRED_GROQ_MODELS = frozenset({"distil-whisper-large-v3-en"})
# Providers with native handlers. Kept in sync with ``agent.transcription_registry._BUILTIN_NAMES``
# (a regression test fails on drift); plugins may not register under these names and the
diff --git a/tools/transcription_local.py b/tools/transcription_local.py
index 6d2bc26815a..d8e4429262e 100644
--- a/tools/transcription_local.py
+++ b/tools/transcription_local.py
@@ -20,7 +20,7 @@ from typing import Any, Dict, Optional
from tools.transcription_audio import _find_whisper_binary, _prepare_local_audio, _run_quiet
from tools.transcription_common import (
- DEFAULT_LOCAL_MODEL, DEFAULT_LOCAL_STT_LANGUAGE, GROQ_MODELS, LOCAL_STT_COMMAND_ENV,
+ DEFAULT_LOCAL_MODEL, DEFAULT_LOCAL_STT_LANGUAGE, GROQ_MODELS, LOCAL_STT_COMMAND_ENV, RETIRED_GROQ_MODELS,
OPENAI_MODELS, _config_number, _error_result, _log_prompt_unsupported, _ok_result,
_process_error_detail)
@@ -80,7 +80,7 @@ def _normalize_local_model(model_name: Optional[str]) -> str:
"""Return a valid faster-whisper size; cloud-only names (``whisper-1`` …) fall back to the default with a warning."""
if not model_name:
return DEFAULT_LOCAL_MODEL
- if model_name in OPENAI_MODELS | GROQ_MODELS:
+ if model_name in OPENAI_MODELS | GROQ_MODELS | RETIRED_GROQ_MODELS:
logger.warning(
"STT model '%s' is a cloud-only name and cannot be used with the local "
"provider. Falling back to '%s'. Set stt.local.model to a valid "