Previous models (especially 3) are much larger than ChatGPT, better suited for coding output - and allow you to find tune them precisely for something like this For anything but chatbot specific application, digging past ChatGPT is well worth one's time