Add backend for transformers.js whisper

This commit is contained in:
Cohee
2024-02-02 00:36:40 +02:00
parent 695b438c0d
commit 4b845dd442
6 changed files with 114 additions and 25 deletions

View File

@@ -593,6 +593,9 @@ app.use('/api/backends/chat-completions', require('./src/endpoints/backends/chat
// Scale (alt method)
app.use('/api/backends/scale-alt', require('./src/endpoints/backends/scale-alt').router);
// Speech (text-to-speech and speech-to-text)
app.use('/api/speech', require('./src/endpoints/speech').router);
const tavernUrl = new URL(
(cliArguments.ssl ? 'https://' : 'http://') +
(listen ? '0.0.0.0' : '127.0.0.1') +