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"