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