feat: add knowledge base and midjourney switch instruction

This commit is contained in:
zhayujie
2023-08-06 17:57:07 +08:00
parent 395edbd9f4
commit 8abf18ab25
3 changed files with 60 additions and 15 deletions

View File

@@ -54,3 +54,9 @@ class Bridge(object):
def fetch_translate(self, text, from_lang="", to_lang="en") -> Reply:
return self.get_bot("translate").translate(text, from_lang, to_lang)
def reset_bot(self):
"""
重置bot路由
"""
self.__init__()