add: 添加chatgpt chat api逻辑

This commit is contained in:
taylor
2024-10-14 00:16:19 +08:00
parent 8c16faa34a
commit 0f7a2c4b33
4 changed files with 59 additions and 16 deletions

View File

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