amis-rpc-design/libs/amis/scripts/bot/llm/base.py

8 lines
131 B
Python
Raw Normal View History

2023-10-07 19:42:30 +08:00
from abc import ABC, abstractmethod
class LLM(ABC):
@abstractmethod
def generate(self, prompt: str) -> str:
pass