fix errors

This commit is contained in:
podiukov.iv
2026-04-24 17:57:35 +05:00
parent 64460d91b4
commit d38b9337c9
3 changed files with 25 additions and 26 deletions

View File

@@ -9,8 +9,10 @@ class ParaphraseGenerator:
Использование: ParaphraseGenerator([температура], [максимальное количество токенов])
"""
def __init__(self, temperature=0.8, max_tokens=200):
def __init__(self, temperature=0.8, max_tokens=512):
self.client = OpenAI(base_url='http://127.0.0.1:8080', api_key='')
self.temperature = temperature
self.max_tokens = max_tokens
def generateByPrompt(self, prompt):
try: