mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-03 23:15:37 +00:00
16 lines
254 B
Python
16 lines
254 B
Python
from abc import ABC, abstractmethod
|
|
import json
|
|
|
|
|
|
class BaseLLM(ABC):
|
|
def __init__(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def gen(self, *args, **kwargs):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def gen_stream(self, *args, **kwargs):
|
|
pass
|