live_transcript.model = "" silently falls back to dictation.model instead of inheriting transcription.model
With live_transcript.backend = "inherit" and live_transcript.model = "", I expected the recording sidecar to use [transcription].model (in my case "small", with ggml-small.bin already present in model_path).
Instead, the sidecar fails with:
Transcription model not found. Expected model file "ggml-base.bin" in ~/.minutes/models.
Root cause (crates/core/src/live_transcript.rs:2025-2028):
let model_path = if config.live_transcript.model.is_empty() {
crate::transcribe::resolve_model_path_for_dictation(config)?
} else {
crate::transcribe::resolve_model_path_by_name(&config.live_transcript.model, config)?
};
When live_transcript.model is empty, it resolves via resolve_model_path_for_dictation, which reads config.dictation.model (defaults to "base") — not config.transcription.model. This is surprising given backend = "inherit" implies inheriting from the main transcription config.
Workaround: explicitly set live_transcript.model = "small" (or whatever matches transcription.model).
Suggestion: either have the empty-string case fall back to transcription.model, or clarify in docs/config comments that an empty live_transcript.model inherits from dictation.model, not transcription.model.
minutes version: 0.24.0
Thank you, this is a model bug report: expected behavior, actual behavior, the resolution path traced to the line, a workaround, and two candidate fixes. Your analysis is correct. resolve_model_path_for_dictation reads config.dictation.model (default "base"), not config.transcription.model (default "small"), which is exactly why it went looking for ggml-base.bin.
I am not going to change the fallback, and I want to give you the reasoning rather than just the verdict. Live transcription runs in real time against a streaming utterance, so it wants a small fast model; batch transcription can afford a slower, more accurate one. If the empty case inherited transcription.model, then anyone who had deliberately chosen a large model for batch quality would silently get a live sidecar too slow to keep up. That trades your clear error for a vaguer performance problem, which I think is the worse failure.
That said, you were set up to expect otherwise, and that part is our fault in three ways:
- The field immediately above is
backend = "inherit". Reading that and then a blankmodel, inheriting is the obvious conclusion. The naming invites the exact assumption you made. - The error is a dead end. It names a missing file but not which setting chose it, so there is no path from the message back to the knob. That is why you had to read our source to solve your own config problem, and it is the part I am most bothered by.
- Our own docs undersell it.
docs/architecture/config.mdsays "inherits dictation model" with no hint of why, so even a reader who finds it has no reason to believe it is deliberate rather than arbitrary.
One thing you could not have seen: there are two sites with this resolution, not one. Yours is the recording sidecar; the standalone live path has the same shape a hundred lines away. A fix that only touched the line you found would leave the other producing the identical confusing error.
So: fixing the error message to name the resolution chain and the setting to change, fixing both sites, and documenting the rationale rather than just the behavior. Leaving this open until that lands, and I will link the PR here.
Workaround stands in the meantime, and it is the right one: set live_transcript.model explicitly.
PR up: #757. It keeps the fallback and fixes what actually failed you: the error now names the resolution chain and both ways out, both call sites share it (there were two, as noted), and the config docs and code comment now carry the rationale rather than just the behavior. Thanks again for tracing it to the line, that is what made this a ten-minute fix.
Merged in #757. The error now names the resolution chain and both ways out, both call sites share it, and the config docs and code comment carry the reasoning. Thanks again for the report, it was traced well enough that the fix took minutes rather than an investigation.