debug: show raw Gemini vision response in Telegram when JSON parse fails
This commit is contained in:
@@ -188,7 +188,12 @@ class TelegramBotService
|
||||
}
|
||||
|
||||
if (isset($datosPago['__error'])) {
|
||||
$this->send($chatId, "⚠️ Error al analizar el comprobante:\n`" . $datosPago['__error'] . "`");
|
||||
$this->send($chatId, "⚠️ Error de API:\n`" . $datosPago['__error'] . "`");
|
||||
return;
|
||||
}
|
||||
|
||||
if (isset($datosPago['__parse_error'])) {
|
||||
$this->send($chatId, "⚠️ Gemini respondió pero no es JSON válido:\n`" . $datosPago['__parse_error'] . "`");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user