fix get_session error

This commit is contained in:
goldfishh
2023-03-30 00:19:18 +08:00
parent f5f8033d4d
commit 0b5fd27cd8
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ class Tool(Plugin):
# Don't modify bot name
all_sessions = Bridge().get_bot("chat").sessions
user_session = all_sessions.session_query(query, e_context['context']['session_id'])
user_session = all_sessions.session_query(query, e_context['context']['session_id']).messages
# chatgpt-tool-hub will reply you with many tools
logger.debug("[tool]: just-go")