Formatting

This commit is contained in:
2024-02-15 17:53:27 +01:00
parent 53b627f4ed
commit e8cf4bad50

View File

@@ -3,8 +3,17 @@ from ..BaseEngine import BaseEngine
import openai
class BaseLLMEngine(BaseEngine):
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 | 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