mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Fix content cleaning
This commit is contained in:
parent
cd994eb87e
commit
a57fb8e436
1 changed files with 4 additions and 4 deletions
|
|
@ -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, ">")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue