Your test looks invalid? In a real scenario, a program would be calling `json.dumps()` or equivalent, and there would be no way to inject an unescaped quotation mark or linebreak into the ChatGPT prompt.
[0] https://github.com/keybittech/wizapp/blob/main/src/lib/promp...