Antonio Cheong commited on
Commit
3102d2a
·
1 Parent(s): 3421236

Allow redirects

Browse files
Files changed (1) hide show
  1. src/EdgeGPT.py +1 -0
src/EdgeGPT.py CHANGED
@@ -120,6 +120,7 @@ class Conversation:
120
  url,
121
  timeout_seconds=30,
122
  headers=HEADERS,
 
123
  )
124
  if response.status_code != 200:
125
  raise Exception("Authentication failed")
 
120
  url,
121
  timeout_seconds=30,
122
  headers=HEADERS,
123
+ allow_redirects=True,
124
  )
125
  if response.status_code != 200:
126
  raise Exception("Authentication failed")