Merge pull request #1089 from taoguoliang/master-fork

feat(命令): 添加set_gpt_model、set_gpt_model、set_gpt_model 几个命令的使用
This commit is contained in:
Jianglang
2023-05-15 23:34:04 +08:00
committed by GitHub
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)