From d25574274328ce10627764ee4987d8ceaa6b561a Mon Sep 17 00:00:00 2001 From: NovaOSS Admins Date: Sun, 15 Oct 2023 19:22:24 +0000 Subject: [PATCH] cool fixes yea --- README.md | 2 ++ api/main.py | 2 +- requirements.txt | 40 ++++++++++++++++++++++------------------ 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 76fbcf7..bde94fd 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,10 @@ This one's code can be found in the following repository: [github.com/novaoss/no - Python 3.9+ - pip - MongoDB database +- `uvicorn` ## Recommended +- Setup of the other infrastructure - `git` (for updates) - `screen` (for production) - Cloudflare (for security, anti-DDoS, etc.) - we fully support Cloudflare diff --git a/api/main.py b/api/main.py index bad25ed..997160e 100644 --- a/api/main.py +++ b/api/main.py @@ -48,7 +48,7 @@ app.add_middleware(SlowAPIMiddleware) async def startup_event(): """Runs when the API starts up.""" # https://stackoverflow.com/a/74529009 - pydantic.json.ENCODERS_BY_TYPE[ObjectId]=str + # pydantic.json.ENCODERS_BY_TYPE[ObjectId]=str folders = ['backups', 'cache', 'secret', 'secret/proxies'] diff --git a/requirements.txt b/requirements.txt index d7e366c..c6a2919 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,19 +1,23 @@ -aiofiles==23.2.1 -aiohttp==3.8.5 -aiohttp_socks==0.8.0 -dhooks==1.1.4 -fastapi==0.101.0 -httpx==0.24.1 -motor==3.2.0 -openai==0.27.8 -providers==0.0.2 -pydantic==2.1.1 -pymongo==4.4.1 -python-dotenv==1.0.0 -python_socks==2.3.0 -pytz==2023.3 -PyYAML==6.0.1 -rich==13.5.2 -setuptools==65.5.1 +aiocache +aiofiles +aiohttp +aiohttp_socks +cachetools +dhooks +fastapi +httpx +motor +numpy +openai +Pillow +pydantic +pymongo +python-dotenv +pytz +PyYAML +slowapi +Sphinx starlette -tiktoken==0.4.0 +tiktoken +ujson +alt-profanity-check \ No newline at end of file