from abc import ABC,abstractmethod class ModelBase(ABC): @abstractmethod async def get_model(self): pass @abstractmethod async def post_message(self, model: str, messages: list, stream: bool = False, **kwargs): pass