remove preservations references from translateTextRaw function
This commit is contained in:
parent
99bdb1c6f8
commit
a2a786040e
1 changed files with 2 additions and 8 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue