feat(startup): pre-warm default Whisper model at launch in background thread

This commit is contained in:
2026-04-18 09:28:03 +01:00
parent 8c1bec98ca
commit ddcf93649c
2 changed files with 42 additions and 1 deletions

View File

@@ -215,6 +215,11 @@ pub fn run() {
db,
});
{
let whisper = app.state::<AppState>().whisper_engine.clone();
crate::commands::models::prewarm_default_model(whisper);
}
if let Err(e) = tray::setup(app) {
eprintln!("Failed to setup tray: {e}");
}