Skip to content

Commit

Permalink
fix: variable name compatibility modification zhayujie#415
Browse files Browse the repository at this point in the history
  • Loading branch information
zhayujie authored Mar 10, 2023
1 parent d73003b commit 41182bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/chatgpt/chat_gpt_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def reply(self, query, context=None):
# acquire reply content
if not context or not context.get('type') or context.get('type') == 'TEXT':
logger.info("[OPEN_AI] query={}".format(query))
session_id = context['session_id']
session_id = context.get('session_id') or context.get('from_user_id')
if query == '#清除记忆':
Session.clear_session(session_id)
return '记忆已清除'
Expand Down

0 comments on commit 41182bc

Please sign in to comment.