Skip to content

Commit c4e4f49

Browse files
committed
🩹 使用 AllParam 代替 MultiVar 解析参数
1 parent 1573256 commit c4e4f49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nonebot_plugin_deepseek/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
require("nonebot_plugin_waiter")
1212
require("nonebot_plugin_alconna")
1313
require("nonebot_plugin_localstore")
14+
from arclet.alconna import AllParam
1415
from arclet.alconna import config as alc_config
1516
from nonebot_plugin_alconna.builtins.extensions.reply import ReplyMergeExtension
1617
from nonebot_plugin_alconna import (
@@ -20,7 +21,6 @@
2021
Query,
2122
Option,
2223
Alconna,
23-
MultiVar,
2424
Namespace,
2525
Subcommand,
2626
UniMessage,
@@ -67,7 +67,7 @@
6767
deepseek = on_alconna(
6868
Alconna(
6969
"deepseek",
70-
Args["content?#内容", MultiVar("str")],
70+
Args["content?#内容", AllParam(str)],
7171
Option(
7272
"--use-model",
7373
Args[
@@ -331,4 +331,4 @@ async def _(
331331
is_to_pic=render_option.result,
332332
is_contextual=context_option.available,
333333
tts_model=tts_model if use_tts.available and tts_config.enable_models else None,
334-
).handle(" ".join(content.result) if content.available else None)
334+
).handle(" ".join(str(content.result)) if content.available else None)

0 commit comments

Comments
 (0)