|
|
@@ -1,7 +1,7 @@ |
|
|
|
# encoding:utf-8 |
|
|
|
|
|
|
|
from bot.bot import Bot |
|
|
|
from config import conf |
|
|
|
from config import conf, load_config |
|
|
|
from common.log import logger |
|
|
|
from common.expired_dict import ExpiredDict |
|
|
|
import openai |
|
|
@@ -30,7 +30,10 @@ class ChatGPTBot(Bot): |
|
|
|
return '记忆已清除' |
|
|
|
elif query == '#清除所有': |
|
|
|
Session.clear_all_session() |
|
|
|
return '所有人记忆已清除' |
|
|
|
return '所有人记忆已清除' |
|
|
|
elif query == '#更新配置': |
|
|
|
load_config() |
|
|
|
return '配置已更新' |
|
|
|
|
|
|
|
session = Session.build_session_query(query, session_id) |
|
|
|
logger.debug("[OPEN_AI] session query={}".format(session)) |
|
|
|