Browse Source

やっぱ採用

btc-sounds
みてるぞ 1 year ago
parent
commit
13fa605fef
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      talk.py

+ 2
- 2
talk.py View File

@@ -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,


Loading…
Cancel
Save