ChatGPT is a slightly specialised version of their most recent GPT3 model. You can access a version that isn't set up to act like a chatbot, you may be interested to look at the "playground" section where they have a pile of exam