DocsGPT/application/llm/base.py

15 lines
242 B
Python
Raw Normal View History

2023-09-26 09:03:22 +00:00
from abc import ABC, abstractmethod
class BaseLLM(ABC):
def __init__(self):
pass
@abstractmethod
def gen(self, *args, **kwargs):
pass
@abstractmethod
def gen_stream(self, *args, **kwargs):
pass