feat: add OpenRouter dictation and speech recognition settings
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user