When it comes to cross context awareness, ChatGPT falls apart. It vary rarely can put two separate code pieces together beyond the most basic use cases. I'm sure it's seen enough references to " that it assumed there was one for openai.