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