my_image =""// setup the variablesmainloop:// makes sure to run this every frameif my_image =="" (gpt"generate_img" "A penguin on the moon"// Send to bot my_image = data// save the image url to a variable)image my_image 100// draw the imageimport"win-buttons"// imports the window buttons
Generate text with no context and no bots
say"hello, how are you?".gptGenerate()// generates the text and says it
Get chat history
history = name.gptHistory()// grab the history of chats with a bot as a json array// sets the history variable to a json array of your chats with a specific bot