这是一段示例代码:

from chatgpt import ChatGPT

chatgpt = ChatGPT()

while True: query = input('你:') response = chatgpt.chat(query) print('ChatGPT:', response)