From a57fb8e436b5039506c19f66c45bec853430b3ed Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sat, 12 Oct 2024 17:19:26 -0400 Subject: [PATCH] Fix content cleaning --- src/core/Cline.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/Cline.ts b/src/core/Cline.ts index f9992cb..d21a8fc 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -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, ">")