From 13fa605fef9bf8351fa4c5e1e4196eef7cb52663 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Fri, 1 Dec 2023 00:51:40 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=84=E3=81=A3=E3=81=B1=E6=8E=A1=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- talk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/talk.py b/talk.py index 3142a0e..93a7930 100644 --- a/talk.py +++ b/talk.py @@ -6,7 +6,7 @@ import openai class Talk: max_tokens_count: int = 100 - responses_count: int = 5 + responses_count: int = 1 temperature: float = .7 top_p: int = 1 @@ -20,7 +20,7 @@ class Talk: @classmethod def __get_answers (cls, message: str) -> list[str]: return openai.Completion.create ( - model = 'text-davinci-002', + engine = 'text-davinci-002', prompt = message, max_tokens = cls.max_tokens_count, n = cls.temperature,