Am trying to make a GPT that can make code changes and post them back to an API. Was trying to have the GPT send the line numbers in the code file it had made changes at, but it consistently gets the line numbers wrong. It says it identifies line numbers by counting \n, which seems like it should work and when it outputs the file it splits the lines correctly, so a bit puzzled why it seems to be unable to identify code sections by line number.
Anyone run into this or have any suggestions on how to get past this?