mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix fetch buffer deprecation warnings
This commit is contained in:
@@ -79,7 +79,7 @@ router.post('/generate', jsonParser, async (req, res) => {
|
||||
return res.sendStatus(500);
|
||||
}
|
||||
|
||||
const audio = await response.buffer();
|
||||
const audio = Buffer.from(await response.arrayBuffer());
|
||||
res.set('Content-Type', 'audio/ogg');
|
||||
return res.send(audio);
|
||||
} catch (error) {
|
||||
|
Reference in New Issue
Block a user