fix(router.py): fix exponential backoff to use retry-after if present in headers

This commit is contained in:
Krrish Dholakia 2023-11-28 17:24:49 -08:00
parent 7f34298ef8
commit 60d6b6bc37
7 changed files with 154 additions and 67 deletions

View file

@ -37,7 +37,13 @@ def test_chat_openai():
}],
stream=True,
complete_response = True)
response2 = completion(model="gpt-3.5-turbo",
messages=[{
"role": "user",
"content": "Hi 👋 - i'm not openai"
}],
stream=True,
complete_response = True)
time.sleep(1)
assert customHandler.success == True
except Exception as e: