feat(命令): 添加set_gpt_model、set_gpt_model、set_gpt_model 几个命令的使用

This commit is contained in:
taoguoliang
2023-05-07 15:22:24 +08:00
parent e59597280d
commit 3e92d07618
3 changed files with 34 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ class ChatChannel(Channel):
cmsg = context["msg"]
user_data = conf().get_user_data(cmsg.from_user_id)
context["openai_api_key"] = user_data.get("openai_api_key")
context["gpt_model"] = user_data.get("gpt_model")
if context.get("isgroup", False):
group_name = cmsg.other_user_nickname
group_id = cmsg.other_user_id