将角色设定放入配置文件

This commit is contained in:
leeson
2023-05-14 00:17:58 +08:00
parent fe0472ff07
commit b951a06d76
3 changed files with 8 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ class Robot(Job):
self.chat = None
chatgpt = self.config.CHATGPT
if chatgpt:
self.chat = ChatGPT(chatgpt.get("key"), chatgpt.get("api"), chatgpt.get("proxy"))
self.chat = ChatGPT(chatgpt.get("key"), chatgpt.get("api"), chatgpt.get("proxy"), chatgpt.get("prompt"))
def toAt(self, msg: WxMsg) -> bool:
"""处理被 @ 消息