修复ChatGPT无法使用相同会话的bug

修复ChatGPT无法使用相同会话的bug
This commit is contained in:
xszyou 2023-05-22 13:58:27 +08:00
parent 023df4deb1
commit 81bb80c638

View File

@ -20,8 +20,11 @@ def question(cont):
try:
chatbot = Chatbot(config={
"access_token": cfg.key_gpt_access_token,
"conversation_id": cfg.key_gpt_conversation_id
})
"paid": False,
"collect_analytics": True,
"conversation_id":cfg.key_gpt_conversation_id
},conversation_id=cfg.key_gpt_conversation_id,
parent_id=None)
prompt = text + ' 现在想咨询的问题是:'+cont
response = ""