fix(core): resolucion de multiples bugs criticos de backend y visuales

This commit is contained in:
2026-04-01 11:20:48 -05:00
parent b11d57465e
commit 1953be2da0
7 changed files with 22 additions and 11 deletions

View File

@ -98,5 +98,9 @@ Genera el guion con EXACTAMENTE este JSON:
.replace(/\n?```$/, '')
.trim()
return JSON.parse(jsonLimpio)
try {
return JSON.parse(jsonLimpio)
} catch (err) {
throw new Error(`Error parseando JSON de GPT: ${err.message}. Contenido crudo: ${contenido}`)
}
}