This commit is contained in:
Alex
2023-09-26 10:03:22 +01:00
parent e5c43cfc4b
commit e85a583f0a
15 changed files with 514 additions and 372 deletions

15
application/llm/base.py Normal file
View File

@@ -0,0 +1,15 @@
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