fix(settings): 多模态管线 Omni 视图入口与 Apple 语音验证误报 - #1059
Merged
Merged
Conversation
added 2 commits
September 11, 2026 12:48
管线模式切换器位于 OmniChannelSection(挂在 kind=all 的 ProvidersSection 内), 而新版 ServicesTab 只有 pipelineMode=multimodal 时才生成 omni 视图——总开关 打开后没有任何入口切换模式,配置区域因此消失(回归)。 availableServiceViews 改为按「总开关」「生效模式」两个条件生成视图: 开关打开即出现 omni 视图(内含传统/多模态切换器),切到多模态模式后才 按既有语义隐藏传统 llm/asr 页。
本地 ASR 提供方此前一律 ValidationProbe::Unsupported,渠道卡「验证」必然 失败(provider validation is not available),而听写实际可用——用户看到 「验证失败 · …」误报。新增 AsrNativeSilence 探针:Apple 语音无需下载、 即时可用,验证经宿主注入的原生转写引擎跑同一段静音 WAV,真实检验授权 与识别器可用性;下载型本地引擎(whisper/qwen/sherpa)保持 Unsupported, 就绪状态仍由本地模型页报告。 - ProviderService 新增 with_native_transcription 注入点,Tauri 宿主传入 转写路由(与听写同源);未注入宿主维持 Unsupported 语义 - 描述符 fixture 同步 apple-speech 探针值;新增描述符与验证往返测试
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
两个修复
1. 打开多模态识别管线后配置区域消失(回归)
管线模式(传统/多模态)切换器在
OmniChannelSection内,只挂在kind=all的ProvidersSection;而 2.0 版「AI 服务与模型」页的 omni 视图此前要求pipelineMode === 'multimodal'才出现——总开关打开后没有任何入口能切到多模态模式,形成死锁,配置区域消失。现在
availableServiceViews按「实验总开关」「生效管线模式」两个条件生成视图:总开关打开即在 AI 服务与模型出现「多模态模型」视图(内含管线模式切换器),切到多模态模式后才按既有语义隐藏传统语言模型/语音识别页。2. Apple 本地语音识别「验证失败」误报
本地 ASR 提供方此前一律
ValidationProbe::Unsupported,渠道卡「验证」必然失败(provider validation is not available…),而听写实际可用。新增AsrNativeSilence探针:ProviderService::with_native_transcription为注入点,Tauri 宿主传入与听写同源的转写路由;未注入的宿主维持 Unsupported 语义,行为不回退。验证
cargo test -p openless-core --locked:16 套件全过(新增描述符探针测试、注入引擎验证往返测试)cargo check --manifest-path src-tauri/Cargo.toml --locked:通过npm test:构建 + 前端测试全过(新增 service view 视图生成断言)