MCPcopy Create free account
hub / github.com/Recordscript/recordscript / select_model

Function select_model

src-tauri/src/main.rs:263–267  ·  view source on GitHub ↗
(transcriber: State<'_, Arc<Mutex<transcriber::Transcriber>>>, model: transcriber::Model)

Source from the content-addressed store, hash-verified

261
262#[tauri::command]
263fn 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]
270fn list_model() -> Vec<serde_json::Value> {

Callers

nothing calls this directly

Calls 1

change_modelMethod · 0.80

Tested by

no test coverage detected