From 9b564267717c76b75e4c05a92506f6d7a9e9ee47 Mon Sep 17 00:00:00 2001 From: kkuyiaoge Date: Fri, 19 Jun 2026 15:03:12 +0800 Subject: [PATCH] fix(asr): add MiMo provider to credential gate validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `ensure_asr_credentials()` did not handle the `xiaomi-mimo-asr` provider, causing it to fall through to the default Volcengine credential check. This blocked all MiMo ASR users with "请先在设置中填写火山引擎 ASR App Key". Added `is_mimo_provider()` to the credential gate condition so MiMo users are validated via `AsrApiKey` (same as Whisper/Bailian providers). --- openless-all/app/src-tauri/src/coordinator/asr_wiring.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openless-all/app/src-tauri/src/coordinator/asr_wiring.rs b/openless-all/app/src-tauri/src/coordinator/asr_wiring.rs index 5205941e..e1602cd1 100644 --- a/openless-all/app/src-tauri/src/coordinator/asr_wiring.rs +++ b/openless-all/app/src-tauri/src/coordinator/asr_wiring.rs @@ -93,7 +93,10 @@ pub(super) fn ensure_asr_credentials() -> Result<(), String> { } } - if is_whisper_compatible_provider(&active_asr) || is_bailian_provider(&active_asr) { + if is_whisper_compatible_provider(&active_asr) + || is_bailian_provider(&active_asr) + || is_mimo_provider(&active_asr) + { let api_key = CredentialsVault::get(CredentialAccount::AsrApiKey) .ok() .flatten()