From ce189b29677b05455f805dd505864b1c56707a09 Mon Sep 17 00:00:00 2001 From: Lucas Winther Date: Tue, 14 Jul 2026 21:49:57 +0200 Subject: [PATCH] Only show big models when using server. --- src/App.tsx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 5532f0d..21371fc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -615,6 +615,25 @@ export function App() { const serverSelected = engineChoice === "server" && auth.user !== null && serverStatus?.available === true; + const availableModels = serverSelected + ? MODELS.filter((m) => m.fasterWhisperModel === "large-v3-turbo" || m.fasterWhisperModel === "medium.en") + : MODELS; + + useEffect(() => { + if (serverSelected) { + const allowed = ["onnx-community/whisper-large-v3-turbo", "onnx-community/whisper-medium.en_timestamped"]; + if (!allowed.includes(modelId) && !busy && liveStatus === "idle") { + setModelId("onnx-community/whisper-large-v3-turbo"); + setActiveDevice(null); + setPartialText(""); + setTranscribeProgress(null); + setResult(null); + setLoadStarted(false); + setLoadProgress(initialLoadProgress); + } + } + }, [serverSelected, modelId, busy, liveStatus]); + return (
@@ -633,7 +652,7 @@ export function App() {