Feat : tts
This commit is contained in:
1 parent
39545cf4c8
commit
3c96e8d6d1
40 files changed
+1896
-147
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { handleTts } from "@/sse/handlers/tts.js";
|
||||
|
||||
export async function OPTIONS() {
|
||||
return new Response(null, {
|
||||
headers: {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "POST, OPTIONS",
|
||||
"Access-Control-Allow-Headers": "*",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/** POST /v1/audio/speech - OpenAI-compatible TTS endpoint */
|
||||
export async function POST(request) {
|
||||
return await handleTts(request);
|
||||
}
|
||||
Reference in new issue
Block a user