This commit is contained in:
taylorxie
2026-03-09 22:43:02 +08:00
parent b53a918aaa
commit 9f25fdab12
4 changed files with 98 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
import json
from collections import deque
from datetime import datetime
from typing import Optional, List, Generator
from typing import Optional, List, Generator, AsyncIterator
from aiohttp import ClientSession
from maubot import Plugin
@@ -55,6 +55,12 @@ class Platform:
async def create_chat_completion(self, plugin: AbsExtraConfigPlugin, evt: MessageEvent) -> ChatCompletion:
raise NotImplementedError()
async def create_chat_completion_stream(self, plugin: AbsExtraConfigPlugin, evt: MessageEvent) -> AsyncIterator[str]:
raise NotImplementedError()
def is_streaming_enabled(self) -> bool:
return False
async def list_models(self) -> List[str]:
raise NotImplementedError()