From ef52db969df095051bbc1a31fa2ca61fcc260beb Mon Sep 17 00:00:00 2001 From: Asankilp Date: Tue, 10 Jun 2025 12:51:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/handler.py | 5 ++--- nonebot_plugin_marshoai/marsho.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/nonebot_plugin_marshoai/handler.py b/nonebot_plugin_marshoai/handler.py index a4a5c4a..a47e409 100644 --- a/nonebot_plugin_marshoai/handler.py +++ b/nonebot_plugin_marshoai/handler.py @@ -22,10 +22,9 @@ from nonebot_plugin_alconna.uniseg import ( Text, UniMessage, UniMsg, - get_message_id, get_target, ) -from nonebot_plugin_argot import Argot +from nonebot_plugin_argot import Argot # type: ignore from openai import AsyncOpenAI, AsyncStream from openai.types.chat import ChatCompletion, ChatCompletionChunk, ChatCompletionMessage @@ -247,7 +246,7 @@ class MarshoHandler: Argot( "detail", Text(await process_completion_to_details(response)), - command=f"detail", + command="detail", expired_at=timedelta(minutes=5), ) ) diff --git a/nonebot_plugin_marshoai/marsho.py b/nonebot_plugin_marshoai/marsho.py index 8177231..241d4ee 100644 --- a/nonebot_plugin_marshoai/marsho.py +++ b/nonebot_plugin_marshoai/marsho.py @@ -23,7 +23,7 @@ from nonebot_plugin_alconna import ( message_reaction, on_alconna, ) -from nonebot_plugin_argot.extension import ArgotExtension +from nonebot_plugin_argot.extension import ArgotExtension # type: ignore from .config import config from .constants import INTRODUCTION, SUPPORT_IMAGE_MODELS