From f837163ca1084a43ec75cf2a0136d86f02204783 Mon Sep 17 00:00:00 2001 From: taylor Date: Sun, 13 Oct 2024 16:47:59 +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/local_paltform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot_llmplus/local_paltform.py b/maubot_llmplus/local_paltform.py index 81d12ad..b328b88 100644 --- a/maubot_llmplus/local_paltform.py +++ b/maubot_llmplus/local_paltform.py @@ -19,7 +19,7 @@ class Ollama(Platform): async def create_chat_completion(self, plugin: Plugin, evt: MessageEvent) -> ChatCompletion: full_context = [] - context = maubot_llmplus.platforms.get_context(plugin, evt) + context = await maubot_llmplus.platforms.get_context(plugin, evt) full_context.extend(list(context)) endpoint = f"{self.url}/api/chat"