From 03dc086d1406a4a145df4ad43ba0f1c043577f59 Mon Sep 17 00:00:00 2001 From: taylor Date: Sun, 13 Oct 2024 16:31:50 +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/aibot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maubot_llmplus/aibot.py b/maubot_llmplus/aibot.py index 0870cea..fbe6507 100644 --- a/maubot_llmplus/aibot.py +++ b/maubot_llmplus/aibot.py @@ -115,7 +115,7 @@ class AiBotPlugin(Plugin): try: await event.mark_read() await self.client.set_typing(event.room_id, timeout=99999) - platform = self.get_platform() + platform = self.get_ai_platform() chat_completion = platform.create_chat_completion(event) # ai gpt调用 # 关闭typing提示 @@ -133,7 +133,7 @@ class AiBotPlugin(Plugin): return None - async def get_platform(self) -> Platform: + def get_ai_platform(self) -> Platform: use_platform = self.config['use_platform'] if use_platform == 'local_ai': type = self.config['platforms']['local_ai']['type']