mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -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()
|
||||
}
|
||||
|
||||
// it seems not just llama models are doing this, but also gemini and potentially others
|
||||
if (
|
||||
this.api.getModel().id.includes("llama") &&
|
||||
(newContent.includes(">") ||
|
||||
newContent.includes("<") ||
|
||||
newContent.includes("""))
|
||||
newContent.includes(">") ||
|
||||
newContent.includes("<") ||
|
||||
newContent.includes(""")
|
||||
) {
|
||||
newContent = newContent
|
||||
.replace(/>/g, ">")
|
||||
|
||||
Reference in New Issue
Block a user