cool fixes yea

This commit is contained in:
NovaOSS Admins 2023-10-15 19:22:24 +00:00
parent d1c7180d5d
commit d255742743
3 changed files with 25 additions and 19 deletions

View file

@ -68,8 +68,10 @@ This one's code can be found in the following repository: [github.com/novaoss/no
- Python 3.9+ - Python 3.9+
- pip - pip
- MongoDB database - MongoDB database
- `uvicorn`
## Recommended ## Recommended
- Setup of the other infrastructure
- `git` (for updates) - `git` (for updates)
- `screen` (for production) - `screen` (for production)
- Cloudflare (for security, anti-DDoS, etc.) - we fully support Cloudflare - Cloudflare (for security, anti-DDoS, etc.) - we fully support Cloudflare

View file

@ -48,7 +48,7 @@ app.add_middleware(SlowAPIMiddleware)
async def startup_event(): async def startup_event():
"""Runs when the API starts up.""" """Runs when the API starts up."""
# https://stackoverflow.com/a/74529009 # 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'] folders = ['backups', 'cache', 'secret', 'secret/proxies']

View file

@ -1,19 +1,23 @@
aiofiles==23.2.1 aiocache
aiohttp==3.8.5 aiofiles
aiohttp_socks==0.8.0 aiohttp
dhooks==1.1.4 aiohttp_socks
fastapi==0.101.0 cachetools
httpx==0.24.1 dhooks
motor==3.2.0 fastapi
openai==0.27.8 httpx
providers==0.0.2 motor
pydantic==2.1.1 numpy
pymongo==4.4.1 openai
python-dotenv==1.0.0 Pillow
python_socks==2.3.0 pydantic
pytz==2023.3 pymongo
PyYAML==6.0.1 python-dotenv
rich==13.5.2 pytz
setuptools==65.5.1 PyYAML
slowapi
Sphinx
starlette starlette
tiktoken==0.4.0 tiktoken
ujson
alt-profanity-check