It's tricky to get ChatGPT (even with o1 pro) to generate good manim code:
https://x.com/RahimNathwani/status/1901771994397622357?t=LGO...
There was a paper recently that tackled this:
Have you tried with Claude? I recall seeing a tweet with impressive results.
I tried this prompt on o1 pro, sonnet 3.7 extended, and o3-mini-high:
"Create code for a manim video that shows how to do the long division algorithm."
None of them gave satisfactory results. (They all provided code that 'worked' in the sense that it created a valid video file.)