From 7e928120a46ed98c2f9e47144e8364a0bd8925a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BF=E3=81=A6=E3=82=8B=E3=81=9E?= Date: Sun, 26 May 2024 06:44:34 +0900 Subject: [PATCH] =?UTF-8?q?'talk.py'=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- talk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/talk.py b/talk.py index bac84f5..93b9152 100644 --- a/talk.py +++ b/talk.py @@ -1,3 +1,4 @@ +import random import sys from datetime import datetime @@ -237,7 +238,7 @@ class Talk: try: return openai.chat.completions.create ( - model = 'gpt-3.5-turbo', + model = 'gpt-4o' if random.random () < .2 else 'gpt-3.5-turbo', messages = messages).choices[0].message except: return None