remove preservations references from translateTextRaw function

This commit is contained in:
Russell Ballestrini 2025-07-11 20:24:50 -04:00
parent 99bdb1c6f8
commit a2a786040e

View file

@ -330,21 +330,15 @@ ${preservedText}`;
console.log("Token breakdown:", tokenInfo.breakdown);
// Debug logging
console.log("=== TRANSLATION DEBUG ===");
console.log("=== RAW TRANSLATION DEBUG ===");
console.log(
"Original text:",
"Input text:",
text.substring(0, 300) + (text.length > 300 ? "..." : ""),
);
console.log(
"Preserved text:",
preservedText.substring(0, 300) + (preservedText.length > 300 ? "..." : ""),
);
console.log("Preservations found:", preservations.length);
preservations.forEach((item, index) => {
console.log(
` ${index}: ${item.placeholder} -> ${item.content.substring(0, 50)}${item.content.length > 50 ? "..." : ""}`,
);
});
// Use minimal system message for translation - focused purely on the task
const translationHistory = [