From a76de359d5e66b7870e7612921aca66d4216471e Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Thu, 30 Oct 2025 00:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E5=B9=B6?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=AF=8F=E6=AC=A1=E6=8E=A5=E5=8F=97=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=90=8E=E7=9A=84=E8=87=AA=E5=8A=A8=E5=9B=9E=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/ai_config.json | 2 +- games/ai_chat.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/ai_config.json b/data/ai_config.json index b355db6..86f10c3 100644 --- a/data/ai_config.json +++ b/data/ai_config.json @@ -1,6 +1,6 @@ { "host": "localhost", "port": 11434, - "model": "llama3.1" + "model": "qwen3:0.6b" } diff --git a/games/ai_chat.py b/games/ai_chat.py index a230319..72e9d18 100644 --- a/games/ai_chat.py +++ b/games/ai_chat.py @@ -88,7 +88,8 @@ class AIChatGame(BaseGame): task = asyncio.create_task(self._delayed_response(chat_id)) _pending_tasks[chat_id] = task - return "✅ 已收到,等待10秒后回答(如有新消息将重新计时)" + # 不返回确认消息,静默处理 + return "" async def _handle_config(self, args: str, chat_id: int, user_id: int) -> str: """处理配置请求