mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 20:53:58 +01:00
debug test
This commit is contained in:
parent
cdf8d32ac0
commit
ae66e2e699
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue