diff --git a/bot/skills/buktopuha.py b/bot/skills/buktopuha.py index b282a2b..62dea31 100644 --- a/bot/skills/buktopuha.py +++ b/bot/skills/buktopuha.py @@ -328,11 +328,9 @@ def check_for_answer(update: Update, context: CallbackContext): def generate_question(prompt, word) -> str: - model = random.choice( - ["gpt-3.5-turbo-instruct", "gpt-4-1106-preview", "gemini-pro"] - ) + model = random.choice(["gpt-3.5-turbo", "gpt-4-1106-preview", "gemini-pro"]) if model.startswith("gpt"): - response = openai.Completion.create( + response = openai.ChatCompletion.create( model=model, prompt=prompt, temperature=0.9,