mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 09:16:19 +00:00
Formatting
This commit is contained in:
@@ -3,8 +3,17 @@ from ..BaseEngine import BaseEngine
|
|||||||
|
|
||||||
import openai
|
import openai
|
||||||
|
|
||||||
class BaseLLMEngine(BaseEngine):
|
|
||||||
|
|
||||||
|
class BaseLLMEngine(BaseEngine):
|
||||||
@abstractmethod
|
@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 | dict:
|
def generate(
|
||||||
|
self,
|
||||||
|
system_prompt: str,
|
||||||
|
chat_prompt: str,
|
||||||
|
max_tokens: int,
|
||||||
|
temperature: float,
|
||||||
|
top_p: float,
|
||||||
|
frequency_penalty: float,
|
||||||
|
presence_penalty: float,
|
||||||
|
) -> str | dict:
|
||||||
pass
|
pass
|
||||||
Reference in New Issue
Block a user