ChatGPT used OpenAI's completion API under the hood. The maximum number of characters that can be part of a single request (prompt + answer) is about 8192 or 16384 depending on the underlying model used.