sixfingerdev commited on
Commit
e86f718
·
verified ·
1 Parent(s): 4c9dd98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -261,7 +261,7 @@ async def chat_completion(
261
  key_manager.mark_success(api_key)
262
  return response.json()
263
 
264
- elif response.status_code == 429:
265
  # Rate limit - try next key
266
  key_manager.mark_failed(api_key)
267
  api_key = key_manager.get_working_key()
 
261
  key_manager.mark_success(api_key)
262
  return response.json()
263
 
264
+ elif response.status_code == 403:
265
  # Rate limit - try next key
266
  key_manager.mark_failed(api_key)
267
  api_key = key_manager.get_working_key()