add: 添加ollama调用AI chat逻辑

This commit is contained in:
taylor
2024-10-13 16:46:13 +08:00
parent 2a8054b36a
commit 9199aacc69
4 changed files with 9 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ class Platform:
调用AI对话接口, 响应结果
"""
async def create_chat_completion(self, evt: MessageEvent) -> ChatCompletion:
async def create_chat_completion(self, plugin: Plugin, evt: MessageEvent) -> ChatCompletion:
raise NotImplementedError()
def get_type(self) -> str: