Allows you to have an engaging and safely emotive spoken / CLI conversation with the AI ChatGPT / GPT-4 while giving you the option to let it remember things discussed.
The error message NSWindow drag regions should only be invalidated on the Main Thread! suggests that you should update the UI on the main thread only. In this case, Pygame is expecting to run on the main thread.
Code completion by gpt with following prompt:
if __name__ == '__main__':
gui = GUI()
gui.main_thread.join()
def main_loop(self):
pygame.init()
self.display = pygame.display.set_mode((500, 500), pygame.RESIZABLE)
pygame.display.set_caption(f'Chat With {self.chatbot.gpt_model.upper()}')
self.display = pygame.display.set_mode((500, 500), pygame.RESIZABLE)
pygame.error: NSWindow drag regions should only be invalidated on the Main Thread!
The error message NSWindow drag regions should only be invalidated on the Main Thread! suggests that you should update the UI on the main thread only. In this case, Pygame is expecting to run on the main thread.
Code completion by gpt with following prompt: