DEV Community

Any tips for making Google AI studio keep existing functionality?

I'm noticing that as I ask AI studio to add features to my app, it sometimes breaks existing ones. Other than maybe being more specific as to how exactly to implement a feature, is there a way to have it ensure that existing functionality I specified in previous instructions keeps working?

Top comments (2)

Collapse
 
masumhasan profile image
Nur Hasan Masum

Add a line at the end of prompt "Do not break existing features."

Collapse
 
martial_terran_6ecf247360 profile image
Martial Terran

Also, when I use Gemini to modify/upgrade my existing script, you can expressly tell the model to "List the existing [features and functions] of this existing script. All of these functionalities must be preserved in the upgraded script." and/or "Preserve all existing features and functionality." and sometimes "I'm warning you. My boss is coming in to see a demonstration of this ____ in ten minutes. Don't F___ this up!"