amis-rpc-design/libs/amis/scripts/bot/llm/base.py
2023-10-07 19:42:30 +08:00

8 lines
131 B
Python

from abc import ABC, abstractmethod
class LLM(ABC):
@abstractmethod
def generate(self, prompt: str) -> str:
pass