Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix(desktop): remove boot-time BYOK auto-default that overrode subscribed users (#800)
Gabriel Stein19bce6c75b2c
diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex a8739d55b..2139256fd 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -1,7 +1,6 @@import { create } from "zustand";import { API_ENDPOINTS } from "../config/constants";import i18n, { normalizeUiLanguage } from "../i18n";-import { hasStoredByokKey } from "../utils/byokDetection";import { ensureAgentNameInDictionary } from "../utils/agentName";import { useStreamingProvidersStore } from "./streamingProvidersStore";import logger from "../utils/logger";@@ -1644,11 +1643,6 @@ export async function initializeSettings(): Promise<void> {vertexApiKey: vertexApiKey || "",});- // hasStoredByokKey reads from Zustand, so this default must run after hydration.- if (!localStorage.getItem("cloudTranscriptionMode") && hasStoredByokKey()) {- useSettingsStore.setState({ cloudTranscriptionMode: "byok" });- }-for (const key of STALE_SECRET_LOCALSTORAGE_KEYS) {localStorage.removeItem(key);}diff --git a/src/utils/byokDetection.ts b/src/utils/byokDetection.tsdeleted file mode 100644index 27d73f8ba..000000000--- a/src/utils/byokDetection.ts+++ /dev/null@@ -1,6 +0,0 @@-import { useSettingsStore } from "../stores/settingsStore";--export const hasStoredByokKey = () => {- const s = useSettingsStore.getState();- return !!(s.openaiApiKey || s.groqApiKey || s.mistralApiKey || s.customTranscriptionApiKey);-};