Google AI Studio is a Nightmare to maintain Python Scripts

I use Google AI Studio to create Python Script.
At the beginning, all is great.
But after asking modifications, the AI hallucinates.
Don’t respond to the last conversation.
Removes some parts of code without any reason.
Impossible to maintain integrity.
With the limitations of the interface => no possibility to download a complet script.
With the “speed” of the answer, no coherence of the code => missing the declarations of some variables.
Anyway, many problems to resolve.
Many other AI are better for coding.