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