I don't think ChatGPT can be used to detect text written by ChatGPT. It wasn't built for that. OpenAI has a separate tool for detection of AI-generated text, but it is not accurate. And the confidence estimate is just BS.