mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 04:41:16 -05:00
Fix content cleaning
This commit is contained in:
@@ -1018,11 +1018,11 @@ export class Cline {
|
|||||||
newContent = newContent.split("\n").slice(0, -1).join("\n").trim()
|
newContent = newContent.split("\n").slice(0, -1).join("\n").trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// it seems not just llama models are doing this, but also gemini and potentially others
|
||||||
if (
|
if (
|
||||||
this.api.getModel().id.includes("llama") &&
|
newContent.includes(">") ||
|
||||||
(newContent.includes(">") ||
|
|
||||||
newContent.includes("<") ||
|
newContent.includes("<") ||
|
||||||
newContent.includes("""))
|
newContent.includes(""")
|
||||||
) {
|
) {
|
||||||
newContent = newContent
|
newContent = newContent
|
||||||
.replace(/>/g, ">")
|
.replace(/>/g, ">")
|
||||||
|
|||||||
Reference in New Issue
Block a user