Compare commits

...

2 commits

Author SHA1 Message Date
nsde 0da45b0eeb Merge branch 'main' of https://github.com/Luna-OSS/nova-api 2023-08-17 16:47:56 +02:00
nsde 4767f74cd9 Small improvements 2023-08-17 16:47:54 +02:00
2 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,8 @@
# Script to start the production server # Script to start the production server
# Commit to the production branch
git commit -am "Auto-trigger - Production server started" && git push origin Production
# Copy files to production # Copy files to production
cp -r * /home/nova-prod cp -r * /home/nova-prod

View file

@ -4,6 +4,7 @@ import os
import openai as closedai import openai as closedai
import httpx import httpx
from rich import print
from typing import List from typing import List
from dotenv import load_dotenv from dotenv import load_dotenv
@ -91,19 +92,19 @@ def test_api_moderation() -> dict:
def test_all(): def test_all():
"""Runs all tests.""" """Runs all tests."""
print('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('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())
print('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())
print('Checking if the moderation endpoint works...') print('[lightblue]Checking if the moderation endpoint works...')
print(test_library_moderation()) print(test_library_moderation())
print('Checking if all models can be GET') print('[lightblue]Checking the /v1/models endpoint...')
print(test_models()) print(test_models())
if __name__ == '__main__': if __name__ == '__main__':