|
@@ -1,3 +1,4 @@ |
|
|
|
|
|
import random |
|
|
import sys |
|
|
import sys |
|
|
from datetime import datetime |
|
|
from datetime import datetime |
|
|
|
|
|
|
|
@@ -237,7 +238,7 @@ class Talk: |
|
|
|
|
|
|
|
|
try: |
|
|
try: |
|
|
return openai.chat.completions.create ( |
|
|
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 |
|
|
messages = messages).choices[0].message |
|
|
except: |
|
|
except: |
|
|
return None |
|
|
return None |
|
|