From d4826e9e8b49dcd6475c6059389d22967d760d2e Mon Sep 17 00:00:00 2001 From: passthem Date: Sat, 28 Feb 2026 13:50:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=A4=E4=B8=AA=20AI=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E9=83=BD=E4=BD=BF=E7=94=A8=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- konabot/plugins/handle_text/handlers/ai_handlers.py | 2 +- konabot/plugins/simple_notify/ask_llm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/konabot/plugins/handle_text/handlers/ai_handlers.py b/konabot/plugins/handle_text/handlers/ai_handlers.py index adb34c1..72ca29a 100644 --- a/konabot/plugins/handle_text/handlers/ai_handlers.py +++ b/konabot/plugins/handle_text/handlers/ai_handlers.py @@ -7,7 +7,7 @@ class THQwen(TextHandler): name = "qwen" async def handle(self, env: TextHandlerEnvironment, istream: str | None, args: list[str]) -> TextHandleResult: - llm = get_llm("qwen3-max") + llm = get_llm() messages = [] if istream is not None: diff --git a/konabot/plugins/simple_notify/ask_llm.py b/konabot/plugins/simple_notify/ask_llm.py index b808da5..5e20fed 100644 --- a/konabot/plugins/simple_notify/ask_llm.py +++ b/konabot/plugins/simple_notify/ask_llm.py @@ -91,7 +91,7 @@ async def ask_ai(expression: str, now: datetime.datetime | None = None) -> tuple logger.info(f"提醒功能:消息被阿里绿网拦截 message={expression}") return None, "" - llm = get_llm("qwen3-max") + llm = get_llm() message = await llm.chat([ { "role": "system", "content": prompt }, { "role": "user", "content": expression },