mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 22:23:56 +01:00
Compare commits
No commits in common. "0da45b0eeb972bc144dd37440160ef1c78f46292" and "24e3f9f2fd77525fffd12634a89ab77363fd9e25" have entirely different histories.
0da45b0eeb
...
24e3f9f2fd
|
@ -1,8 +1,5 @@
|
|||
# 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
|
||||
cp -r * /home/nova-prod
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ import os
|
|||
import openai as closedai
|
||||
import httpx
|
||||
|
||||
from rich import print
|
||||
from typing import List
|
||||
from dotenv import load_dotenv
|
||||
|
||||
|
@ -92,19 +91,19 @@ def test_api_moderation() -> dict:
|
|||
def test_all():
|
||||
"""Runs all tests."""
|
||||
|
||||
print('[lightblue]Running test on API server to check if its running...')
|
||||
print('Running test on API server to check if its running..')
|
||||
print(test_server())
|
||||
|
||||
print('[lightblue]Running a api endpoint to see if requests can go through...')
|
||||
print('Running a api endpoint to see if requests can go through...')
|
||||
print(test_api())
|
||||
|
||||
print('[lightblue]Checking if the API works with the python library...')
|
||||
print('Checking if the API works with the python library...')
|
||||
print(test_library())
|
||||
|
||||
print('[lightblue]Checking if the moderation endpoint works...')
|
||||
print('Checking if the moderation endpoint works...')
|
||||
print(test_library_moderation())
|
||||
|
||||
print('[lightblue]Checking the /v1/models endpoint...')
|
||||
print('Checking if all models can be GET')
|
||||
print(test_models())
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue