mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Make generation actually work
This commit is contained in:
@ -836,6 +836,7 @@ stability.post('/generate', jsonParser, async (request, response) => {
|
||||
'Accept': 'image/*',
|
||||
},
|
||||
body: formData,
|
||||
timeout: 0,
|
||||
});
|
||||
|
||||
if (!result.ok) {
|
||||
@ -845,7 +846,7 @@ stability.post('/generate', jsonParser, async (request, response) => {
|
||||
}
|
||||
|
||||
const buffer = await result.buffer();
|
||||
return response.send(buffer);
|
||||
return response.send(buffer.toString('base64'));
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
return response.sendStatus(500);
|
||||
|
Reference in New Issue
Block a user