From 7072c30f69593490a86e28770c1ec6633fbc4ba7 Mon Sep 17 00:00:00 2001 From: weikeyi Date: Wed, 20 May 2026 14:45:07 +0800 Subject: [PATCH] test(windows): include sherpa stub in backend test crate --- .../app/src-tauri/backend-tests/tests/backend_rust.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openless-all/app/src-tauri/backend-tests/tests/backend_rust.rs b/openless-all/app/src-tauri/backend-tests/tests/backend_rust.rs index 08ef2f2a..a3760ccb 100644 --- a/openless-all/app/src-tauri/backend-tests/tests/backend_rust.rs +++ b/openless-all/app/src-tauri/backend-tests/tests/backend_rust.rs @@ -22,6 +22,15 @@ mod asr { } } } + + pub mod sherpa { + pub const DEFAULT_MODEL_ALIAS: &str = "sense-voice-small-zh"; + pub const PROVIDER_ID: &str = "sherpa-onnx-local"; + + pub fn is_sherpa_onnx_local(id: &str) -> bool { + id == PROVIDER_ID + } + } } }