Merge branch 'NovaOSS:main' into main

This commit is contained in:
Game_Time 2023-08-20 16:03:42 +05:00 committed by GitHub
commit ca4aa9ecf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,13 +94,13 @@ def test_all():
"""Runs all tests.""" """Runs all tests."""
print("Waiting until API Server is started up...") print("Waiting until API Server is started up...")
time.sleep(5) time.sleep(6)
print('[lightblue]Running test on API server to check if its running...') print('[lightblue]Running test on API server to check if its running...')
print(test_server()) print(test_server())
print('[lightblue]Running a api endpoint to see if requests can go through...') print('[lightblue]Running a api endpoint to see if requests can go through...')
print(test_api()) print(test_api('gpt-3.5-trubo'))
print('[lightblue]Checking if the API works with the python library...') print('[lightblue]Checking if the API works with the python library...')
print(test_library()) print(test_library())
@ -114,6 +114,10 @@ def test_all():
if __name__ == '__main__': if __name__ == '__main__':
closedai.api_base = api_endpoint closedai.api_base = api_endpoint
closedai.api_key = os.environ['NOVA_KEY'] closedai.api_key = os.environ['NOVA_KEY']
if os.environ['NOVA_KEY']:
print('key exists!')
else:
print('idk man i dont see nuthin')
HEADERS = { HEADERS = {
'Content-Type': 'application/json', 'Content-Type': 'application/json',