From 835b5056bcf7c4b48781860069f118d0a4047755 Mon Sep 17 00:00:00 2001 From: Deep Koluguri Date: Fri, 15 May 2026 00:27:07 -0400 Subject: [PATCH] fix: standardize Whisper API path and add ingress rewrite (v9) --- dashboard.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dashboard.js b/dashboard.js index fbccb03..c5f056f 100644 --- a/dashboard.js +++ b/dashboard.js @@ -139,16 +139,25 @@ async function startDeepCapture() { async function processWithWhisper(blob) { const formData = new FormData(); formData.append("file", blob, "audio.wav"); + formData.append("model", "tiny"); // Explicitly tell the server which model to use + try { - const res = await fetch("https://curio.applaude.net/api/whisper/v1/transcribe", { method: "POST", body: formData }); + const res = await fetch("https://curio.applaude.net/api/whisper/v1/audio/transcriptions", { + method: "POST", + body: formData + }); const data = await res.json(); if (data.text) { document.getElementById("consultationNotes").value += "\n[DEEP SCRIBE]: " + data.text; generateSummary(true); } - } catch (e) { generateSummary(document.getElementById("scribeLang")?.value === 'te-IN'); } + } catch (e) { + console.warn("Deep Scribe error, using fallback summary.", e); + generateSummary(document.getElementById("scribeLang")?.value === 'te-IN'); + } } + function generateSummary(isTelugu = false) { const notes = document.getElementById("consultationNotes").value; if (!notes) return;