Despite its name the company OpenAI, the developer of ChatGPT, doesn't publish sources for the majority of their products. In particular, the source code of ChatGPT as of February 4, 2023 haven't been made publicly available. Furthermore OpenAI haven't published any extensive information about the inner workings of ChatGPT. You might be interested in checking the source codes and accompanying papers for some other Large Language Models such as OPT by Meta AI, BLOOM (by various AI researchers), and GPT-NeoX by EleutherAI. Also you might be interested in OpenAI's paper "Training language models to follow instructions with human feedback" (arXiv:2203.02155), where they describe the design of a model InstructGPT, which some people think to be similar to the design of ChatGPT.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence