mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
test: align dispatch tests with provider-scoped validation and named registration errors
Follow-ups for the salvaged wave: the auto-detect legacy-error test now stubs the split validators, the unknown-command-provider test expects the new provider_not_registered error, and _transcribe_local tolerates a null stt.local config section again.
This commit is contained in:
parent
ce57e9fa85
commit
0897e0adb8
3 changed files with 7 additions and 2 deletions
|
|
@ -1399,7 +1399,7 @@ def _transcribe_local(file_path: str, model_name: str) -> Dict[str, Any]:
|
|||
return {"success": False, "transcript": "", "error": "faster-whisper not installed"}
|
||||
|
||||
try:
|
||||
local_cfg = _load_stt_config().get("local", {})
|
||||
local_cfg = _load_stt_config().get("local") or {}
|
||||
# Lazy-load the model (downloads on first use, ~150 MB for 'base').
|
||||
# Double-checked lock: concurrent voice messages must not both
|
||||
# download/load the model (#24767).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue