Skip to content

The agent that grows with you

🐛 fix(stt): declare local initial prompt default

墨綠BG131251a1aefd
diff --git a/hermes_cli/config.py b/hermes_cli/config.py
index a2501411034..76fd21f8b05 100644
--- a/hermes_cli/config.py
+++ b/hermes_cli/config.py
@@ -2325,6 +2325,7 @@ DEFAULT_CONFIG = {
"local": {
"model": "base", # tiny, base, small, medium, large-v3
"language": "", # auto-detect by default; set to "en", "es", "fr", etc. to force
+ "initial_prompt": "",
},
"openai": {
"model": "whisper-1", # whisper-1, gpt-4o-mini-transcribe, gpt-4o-transcribe
diff --git a/tests/tools/test_transcription.py b/tests/tools/test_transcription.py
index c1bba550eca..e8e925d5314 100644
--- a/tests/tools/test_transcription.py
+++ b/tests/tools/test_transcription.py
@@ -122,6 +122,27 @@ class TestValidateAudioFile:
assert "too large" in result["error"]
+# ---------------------------------------------------------------------------
+# Config resolution
+# ---------------------------------------------------------------------------
+
+
+class TestLoadSttConfig:
+
+ def test_merges_default_local_initial_prompt(self, monkeypatch, tmp_path):
+ monkeypatch.setenv("HERMES_HOME", str(tmp_path))
+ (tmp_path / "config.yaml").write_text(
+ "stt:\n local:\n model: small\n",
+ encoding="utf-8",
+ )
+
+ from tools.transcription_tools import _load_stt_config
+ local_config = _load_stt_config()["local"]
+
+ assert local_config["model"] == "small"
+ assert local_config["initial_prompt"] == ""
+
+
# ---------------------------------------------------------------------------
# Local transcription
# ---------------------------------------------------------------------------