add support message on exception

This commit is contained in:
Krrish Dholakia 2023-09-26 17:48:24 -07:00
parent c1fce0859c
commit eb1c7220ff
5 changed files with 6 additions and 1 deletions

View file

@ -45,6 +45,7 @@ def test_context_window(model):
with pytest.raises(ContextWindowExceededError):
completion(model=model, messages=messages)
test_context_window(model="gpt-3.5-turbo")
# Test 2: InvalidAuth Errors
@pytest.mark.parametrize("model", models)
def invalid_auth(model): # set the model key to an invalid key, depending on the model