forked from phoenix/litellm-mirror
(test) router raise exceptions
This commit is contained in:
parent
f01865e960
commit
a1bb880872
1 changed files with 4 additions and 6 deletions
|
@ -157,13 +157,11 @@ def test_exception_raising():
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
except openai.AuthenticationError:
|
except openai.AuthenticationError:
|
||||||
print("Caught an OPENAI AUTH Error, Good job. This is what we needed!")
|
print("Test Passed: Caught an OPENAI AUTH Error, Good job. This is what we needed!")
|
||||||
except Exception as e:
|
|
||||||
os.environ["AZURE_API_KEY"] = old_api_key
|
os.environ["AZURE_API_KEY"] = old_api_key
|
||||||
print("Got exception on router! Good job ", e)
|
except Exception as e:
|
||||||
print(e)
|
print("Got unexpected exception on router!", e)
|
||||||
|
test_exception_raising()
|
||||||
# test_exception_raising()
|
|
||||||
|
|
||||||
### FUNCTION CALLING
|
### FUNCTION CALLING
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue