mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
@@ -22,8 +22,8 @@ router.post('/caption-image', jsonParser, async (request, response) => {
|
||||
{ text: request.body.prompt },
|
||||
{
|
||||
inlineData: {
|
||||
mimeType: 'image/png', // It needs to specify a MIME type in data if it's not a PNG
|
||||
data: mimeType === 'image/png' ? base64Data : request.body.image,
|
||||
mimeType: mimeType,
|
||||
data: base64Data,
|
||||
},
|
||||
}],
|
||||
}],
|
||||
|
Reference in New Issue
Block a user