Gpt-4-1106-preview Doesn't listen to instructions!

This is part of a larger framework. I have not included the complete script. I am also not using gpt-3.5-turbo.

The code I showed is the output of the prompt I gave it, with the exception of the combined_prompt I generated.

It is also necessary for it to take in all scripts as context with the use case I have. The gpt 4 turbo preview endpoint can fit entire frameworks into it’s context window.