From 2adb82d6c061052a4b0e9307979fe530feaac80a Mon Sep 17 00:00:00 2001 From: taylor Date: Sun, 13 Oct 2024 16:20:34 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=B7=BB=E5=8A=A0ollama=E8=B0=83?= =?UTF-8?q?=E7=94=A8AI=20chat=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maubot_llmplus/platforms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maubot_llmplus/platforms.py b/maubot_llmplus/platforms.py index 8d80a92..3dbdc82 100644 --- a/maubot_llmplus/platforms.py +++ b/maubot_llmplus/platforms.py @@ -59,7 +59,7 @@ class Platform: -async def get_context(plugin: maubot_llmplus.AiBotPlugin, evt: MessageEvent) -> deque: +async def get_context(plugin: maubot_llmplus.aibot.AiBotPlugin, evt: MessageEvent) -> deque: # 创建系统提示词上下文 system_context = deque() # 生成当前时间 @@ -122,7 +122,7 @@ async def get_context(plugin: maubot_llmplus.AiBotPlugin, evt: MessageEvent) -> -async def generate_context_messages(plugin: maubot_llmplus.AiBotPlugin, evt: MessageEvent) -> Generator[MessageEvent, None, None]: +async def generate_context_messages(plugin: maubot_llmplus.aibot.AiBotPlugin, evt: MessageEvent) -> Generator[MessageEvent, None, None]: yield evt if plugin.config['reply_in_thread']: while evt.content.relates_to.in_reply_to: