tommy24 commited on
Commit
5b10d58
·
1 Parent(s): e563e21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -152,12 +152,11 @@ def function(Textbox,Textbox2, Textbox3):
152
  )
153
  try:
154
  # sleep(0.8)
155
- headers = {
156
- "Authorization": f"Bearer {auth_key}"
157
- }
158
- response = requests.post(target2, headers=headers, json={
159
- "messages": messages,
160
- "model":"gpt-3.5-turbo"
161
  }).json()
162
  # reply = chat.choices[0].message.content
163
  reply = response['choices'][0]['message']['content']
 
152
  )
153
  try:
154
  # sleep(0.8)
155
+ # headers = {
156
+ # "Authorization": f"Bearer {auth_key}"
157
+ # }
158
+ response = requests.post(target2, json={
159
+ "messages": messages
 
160
  }).json()
161
  # reply = chat.choices[0].message.content
162
  reply = response['choices'][0]['message']['content']