Skip to content

Commit

Permalink
修复ChatGPT无法使用相同会话的bug
Browse files Browse the repository at this point in the history
修复ChatGPT无法使用相同会话的bug
  • Loading branch information
xszyou committed May 22, 2023
1 parent 023df4d commit 81bb80c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ai_module/nlp_gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 81bb80c

Please sign in to comment.