mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 09:16:19 +00:00
10 lines
325 B
Python
10 lines
325 B
Python
|
|
from abc import ABC, abstractmethod
|
||
|
|
from ..BaseEngine import BaseEngine
|
||
|
|
|
||
|
|
import openai
|
||
|
|
|
||
|
|
class BaseLLMEngine(BaseEngine):
|
||
|
|
|
||
|
|
@abstractmethod
|
||
|
|
def generate(self, system_prompt: str, chat_prompt: str, max_tokens: int, temperature: float, top_p: float, frequency_penalty: float, presence_penalty: float) -> str:
|
||
|
|
pass
|