I frequently work with large codebases, but I’ve run into a recurring issue: whenever I paste my complete code into ChatGPT (including versions like O1-pro), the AI’s behavior is overridden by the intent logic embedded in my code. As a result, ChatGPT either provides no response or simply mirrors what my own system would produce.
Is there a recommended way to encapsulate or format code when interacting with ChatGPT or the OpenAI API so that the AI doesn’t inadvertently follow or execute the instructions within the code itself?
Unfortunately, I can’t share the specifics of the intent logic for security reasons. However, I’m actively searching for a workaround or best practice to bypass this problem. Any guidance would be greatly appreciated.
thanks
Here is example of what I get:
I could ask anything and it fails. to come back with a response. its only on code that has a lot of ai logic in it.