mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Console log anthropic multimodal caption errors
This commit is contained in:
@@ -45,7 +45,8 @@ router.post('/caption-image', jsonParser, async (request, response) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!result.ok) {
|
if (!result.ok) {
|
||||||
console.log(`Claude API returned error: ${result.status} ${result.statusText}`);
|
const text = await result.text();
|
||||||
|
console.log(`Claude API returned error: ${result.status} ${result.statusText}`, text);
|
||||||
return response.status(result.status).send({ error: true });
|
return response.status(result.status).send({ error: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user