Recommended diff format for code editing?

I’ve been trying out ChatGPT’s “Work with Apps” feature and it’s clearly gotten very good at creating diffs for code editing.

I would like to leverage this with the API, but I don’t see anything posted on this topic from the last year. Do we know what diff format ChatGPT is using under the hood for its diffs and is there suggested prompting to leverage that via the API?

Use codex in vscode, then it connect your project to github or other gib provider then as it makes changes all the changes are tracked in vscode and you can commit them after testing. Trying to do diffs in chat gpt front end I found to be extremely problematic especially if you are on windows because the files never match. Plus as you are requesting the changes, it often gets the source file wrong and does not include the updated changes. This is why using codex in vscode is the way to go, solves all these problems.