mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-11 05:20:57 +00:00
fix: 异常输出中多余的[bot]
This commit is contained in:
@@ -36,7 +36,7 @@ def process_normal_message(text_message: str, mgr, config, launcher_type: str,
|
|||||||
reply = []
|
reply = []
|
||||||
while True:
|
while True:
|
||||||
if unexpected_exception_times >= max_unexpected_exception_times:
|
if unexpected_exception_times >= max_unexpected_exception_times:
|
||||||
reply = handle_exception(notify_admin=f"[bot]{session_name},多次尝试失败。", set_reply=f"[bot]多次尝试失败,请重试或联系管理员")
|
reply = handle_exception(notify_admin=f"{session_name},多次尝试失败。", set_reply=f"[bot]多次尝试失败,请重试或联系管理员")
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
prefix = "[GPT]" if hasattr(config, "show_prefix") and config.show_prefix else ""
|
prefix = "[GPT]" if hasattr(config, "show_prefix") and config.show_prefix else ""
|
||||||
|
|||||||
Reference in New Issue
Block a user