Stardragon2099 commited on
Commit
087d705
·
1 Parent(s): 6e5e0b9

ported to chatgpt api

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def predict(img, prompt):
78
 
79
  # Make API call
80
  try:
81
- response = openai.ChatCompletion.create(
82
  model="gpt-4",
83
  messages=messages
84
  )
 
78
 
79
  # Make API call
80
  try:
81
+ response = openai.Chat.create(
82
  model="gpt-4",
83
  messages=messages
84
  )