Investigation Of Generative Artificial Intelligence For Sustainable Smart Grids