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

@@ -66,7 +66,7 @@ class ChatGPTBot(Bot, OpenAIImage):
logger.debug("[CHATGPT] session query={}".format(session.messages))
api_key = context.get("openai_api_key")
self.args['model'] = context.get('gpt_model') or "gpt-3.5-turbo"
# if context.get('stream'):
# # reply in stream
# return self.reply_text_stream(query, new_query, session_id)