feat: add OpenRouter dictation and speech recognition settings

This commit is contained in:
2026-10-26 23:42:44 +03:00
parent 168cad7470
commit ecbd2b0bb9
24 changed files with 867 additions and 72 deletions
+12
View File
@@ -0,0 +1,12 @@
import { keyValue, openRouterTranscription } from "@/src/server";
export const runtime = "nodejs";
/** Check availability before recording; the token stays on the server. */
export function GET() {
return Response.json({ configured: Boolean(keyValue("OPENROUTER_API_KEY")) }, { headers: { "Cache-Control": "no-store" } });
}
export async function POST(request: Request) {
return openRouterTranscription(request);
}