Skip to content

Commit 89a1ee7

Browse files
committed
🐛 对 tts subcommand 解析结果进行额外处理
1 parent 438b96c commit 89a1ee7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nonebot_plugin_deepseek/extension.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,7 @@ def id(self) -> str:
3434
async def parse_wrapper(self, bot: Bot, state: T_State, event: Event, res: Arparma) -> None:
3535
if res.subcommands.get("model") and not res.subcommands["model"].options:
3636
res.subcommands["model"].options.setdefault("list", OptionResult())
37+
elif res.subcommands.get("tts") and not res.subcommands["tts"].options:
38+
res.subcommands["tts"].options.setdefault("list", OptionResult())
39+
3740
return None

0 commit comments

Comments
 (0)