mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-05 05:16:03 +00:00
fix: 输出!list时错误的字符删除
This commit is contained in:
@@ -46,7 +46,7 @@ default_prompt = "如果我之后想获取帮助,请你说“输入!help获取
|
||||
# 正则表达式简明教程:https://www.runoob.com/regexp/regexp-tutorial.html
|
||||
response_rules = {
|
||||
"prefix": ["/ai", "!ai", "!ai", "ai"],
|
||||
"regexp": ["为什么.*", "怎么?样.*", "如何.*", "[Hh]ow to.*", "[Ww]hy not.*", "[Ww]hat is.*", ]
|
||||
"regexp": ["为什么.*", "怎么?样.*", "怎么.*", "如何.*", "[Hh]ow to.*", "[Ww]hy not.*", "[Ww]hat is.*", ".*怎么办", ".*咋办"]
|
||||
}
|
||||
|
||||
# 单个api-key的使用量警告阈值
|
||||
|
||||
@@ -264,5 +264,4 @@ class Session:
|
||||
|
||||
def list_history(self, capacity: int = 10, page: int = 0):
|
||||
return pkg.database.manager.get_inst().list_history(self.name, capacity, page,
|
||||
(self.user_name + ":" + get_default_prompt() + "\n" +
|
||||
self.bot_name + ":") if get_default_prompt() != "" else "")
|
||||
get_default_prompt())
|
||||
|
||||
Reference in New Issue
Block a user