|
|
@@ -1032,16 +1032,18 @@ 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 (
|
|
|
- newContent.includes(">") ||
|
|
|
- newContent.includes("<") ||
|
|
|
- newContent.includes(""")
|
|
|
- ) {
|
|
|
- newContent = newContent
|
|
|
- .replace(/>/g, ">")
|
|
|
- .replace(/</g, "<")
|
|
|
- .replace(/"/g, '"')
|
|
|
+ if (!this.api.getModel().id.includes("claude")) {
|
|
|
+ // it seems not just llama models are doing this, but also gemini and potentially others
|
|
|
+ if (
|
|
|
+ newContent.includes(">") ||
|
|
|
+ newContent.includes("<") ||
|
|
|
+ newContent.includes(""")
|
|
|
+ ) {
|
|
|
+ newContent = newContent
|
|
|
+ .replace(/>/g, ">")
|
|
|
+ .replace(/</g, "<")
|
|
|
+ .replace(/"/g, '"')
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const sharedMessageProps: ClineSayTool = {
|