Bug fixes for openai provider

This commit is contained in:
Saoud Rizwan
2024-09-03 19:22:52 -04:00
parent 8274e89eac
commit cceebdc04c
6 changed files with 19 additions and 16 deletions

View File

@@ -917,7 +917,7 @@ export class ClaudeDev {
} as ClaudeSayTool)
)
return `The user accepted but made the following changes to your content:\n\n${userDiff}\n\nFinal result ${
fileExists ? "applied to" : "written as new file"
fileExists ? "saved to" : "written as new file"
} ${relPath}:\n\n${diffResult}`
} else {
const diffResult = diff.createPatch(relPath, originalContent, newContent)