fix: apply code- discard button

This commit is contained in:
Akhileshrangani4
2024-12-01 22:15:03 -05:00
parent d840aad3e9
commit 74b0c6b9e4
5 changed files with 30 additions and 28 deletions

View File

@ -19,7 +19,9 @@ export async function POST(request: Request) {
- Explanations or comments
- Markdown formatting
The output should be the exact code that will replace the existing code, nothing more and nothing less.`
The output should be the exact code that will replace the existing code, nothing more and nothing less.
Important: When merging, preserve the original code structure as much as possible. Only make necessary changes to integrate the new code while maintaining the original code's organization and style.`
const mergedCode = `Original file (${fileName}):\n${originalCode}\n\nNew code to merge:\n${newCode}`