)self.response_ready.emit(response.choices[0].text.strip())classChatWindow(QWidget):def__init__(self):super().__init__()# 设置窗口标题和大小self.setWindowTitle('Chat with GPT-3')self.resize(500,400)# 创建一个垂直布局,并将所有控件添加到布局中layout =QVBoxLayout()# 创建一个标签,并添...