YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: include custom headers in transcription connection test
Louis Beaumont624edb18bc1d
diff --git a/apps/screenpipe-app-tauri/components/settings/hooks/use-transcription-diagnostics.ts b/apps/screenpipe-app-tauri/components/settings/hooks/use-transcription-diagnostics.tsindex b190e437e..67f3bf47e 100644--- a/apps/screenpipe-app-tauri/components/settings/hooks/use-transcription-diagnostics.ts+++ b/apps/screenpipe-app-tauri/components/settings/hooks/use-transcription-diagnostics.ts@@ -54,6 +54,10 @@ export function useTranscriptionDiagnostics(opts: {if (apiKey) {headers["Authorization"] = `Bearer ${apiKey}`;}+ // Include user-configured custom headers+ if (settings.openaiCompatibleHeaders) {+ Object.assign(headers, settings.openaiCompatibleHeaders);+ }const skipRemaining = (failStep: string, message: string) => {const steps = ["endpoint", "auth", "models", "transcribe"] as const;@@ -188,9 +192,13 @@ export function useTranscriptionDiagnostics(opts: {formData.append("model", model);formData.append("response_format", "json");+ const txHeaders: Record<string, string> = {};+ if (apiKey) txHeaders["Authorization"] = `Bearer ${apiKey}`;+ if (settings.openaiCompatibleHeaders) Object.assign(txHeaders, settings.openaiCompatibleHeaders);+const txResponse = await fetch(`${endpoint}/v1/audio/transcriptions`, {method: "POST",- headers: apiKey ? { Authorization: `Bearer ${apiKey}` } : {},+ headers: txHeaders,body: formData,signal: abort.signal,});