Revert "debug(eo): log raw DeepSeek response on parse failure"
This reverts commit 9420612abf.
This commit is contained in:
parent
c473e54ae8
commit
c35727410c
1 changed files with 1 additions and 14 deletions
|
|
@ -1114,20 +1114,7 @@ export async function correctEO(
|
||||||
nclcCible,
|
nclcCible,
|
||||||
});
|
});
|
||||||
const content = await callDeepSeek(system, user, 0.2);
|
const content = await callDeepSeek(system, user, 0.2);
|
||||||
let parsed: unknown;
|
const parsed: unknown = JSON.parse(content);
|
||||||
try {
|
|
||||||
parsed = JSON.parse(content);
|
|
||||||
} catch (err) {
|
|
||||||
// DEBUG temporaire — diagnostic JSON malformé reçu de DeepSeek sur EO.
|
|
||||||
// À retirer une fois la cause identifiée.
|
|
||||||
console.error("[correctEO] JSON.parse failed", {
|
|
||||||
contentPreview: content.slice(0, 500),
|
|
||||||
contentTail: content.slice(-200),
|
|
||||||
contentLength: content.length,
|
|
||||||
errorMessage: err instanceof Error ? err.message : String(err),
|
|
||||||
});
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
return validateCorrectionRapportEO(parsed, nclcCible, transcript);
|
return validateCorrectionRapportEO(parsed, nclcCible, transcript);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue