Ali-C137 commited on
Commit
d3d3034
·
1 Parent(s): 0bddba4

fits the openai 1.2.2 version

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -174,8 +174,9 @@ with tab3:
174
  ]
175
 
176
  # Perform automatic translation using OpenAI GPT-3.5-turbo model
177
- response = openai.ChatCompletion.create(
178
- model="gpt-3.5-turbo",
 
179
  messages=messages,
180
  api_key=openai_api_key
181
  )
 
174
  ]
175
 
176
  # Perform automatic translation using OpenAI GPT-3.5-turbo model
177
+ response = openai.chat.completions.create(
178
+ # model="gpt-3.5-turbo",
179
+ model="gpt-4",
180
  messages=messages,
181
  api_key=openai_api_key
182
  )