mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix: recommend to use unlinkSync instead of rmSync, which has a better compatibility handling non-English characters
This commit is contained in:
@@ -234,7 +234,7 @@ router.post('/transcribe-audio', async (request, response) => {
|
||||
return response.status(500).send(text);
|
||||
}
|
||||
|
||||
fs.rmSync(request.file.path);
|
||||
fs.unlinkSync(request.file.path);
|
||||
const data = await result.json();
|
||||
console.debug('OpenAI transcription response', data);
|
||||
return response.json(data);
|
||||
|
Reference in New Issue
Block a user