From 244153d4ac0d7b7f5ac915b0c801ecdf5b465780 Mon Sep 17 00:00:00 2001 From: MoeSnowyFox Date: Sun, 17 Nov 2024 02:27:43 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BF=AE=E6=AD=A3=E5=B0=91=E9=87=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/azure.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nonebot_plugin_marshoai/azure.py b/nonebot_plugin_marshoai/azure.py index 022d89f..e534e44 100644 --- a/nonebot_plugin_marshoai/azure.py +++ b/nonebot_plugin_marshoai/azure.py @@ -19,7 +19,6 @@ from nonebot.permission import SUPERUSER from nonebot_plugin_alconna import on_alconna, MsgTarget from nonebot_plugin_alconna.uniseg import UniMessage, UniMsg from nonebot import get_driver -from nonebot_plugin_waiter import prompt from .constants import * from .metadata import metadata @@ -184,9 +183,7 @@ async def marsho(target: MsgTarget, event: Event, text: Optional[UniMsg] = None) if not context_msg and target.id not in loaded_target_list: context_msg = list(await load_context_from_json(f"back_up_context_{target.id}", "contexts/backup")) loaded_target_list.append(target.id) - msg_prompt = get_prompt() - context_msg = [msg_prompt] + context_msg - print(str(context_msg)) + context_msg = [get_prompt()] + context_msg target_list.append([target.id, target.private]) if is_reasoning_model: context_msg = context_msg[1:]