mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
Console log anthropic multimodal caption errors
This commit is contained in:
parent
1ac2241d2c
commit
2ea0d6466c
@ -45,7 +45,8 @@ router.post('/caption-image', jsonParser, async (request, response) => {
|
||||
});
|
||||
|
||||
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 });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user