(transcriber: State<'_, Arc<Mutex<transcriber::Transcriber>>>, model: transcriber::Model)
| 261 | |
| 262 | #[tauri::command] |
| 263 | fn select_model(transcriber: State<'_, Arc<Mutex<transcriber::Transcriber>>>, model: transcriber::Model) { |
| 264 | println!("Switching model to {model:?}"); |
| 265 | |
| 266 | transcriber.lock().unwrap().change_model(model); |
| 267 | } |
| 268 | |
| 269 | #[tauri::command] |
| 270 | fn list_model() -> Vec<serde_json::Value> { |
nothing calls this directly
no test coverage detected