Browse Source

'talk.py' を更新

main
みてるぞ 3 months ago
parent
commit
7e928120a4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      talk.py

+ 2
- 1
talk.py View File

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


Loading…
Cancel
Save