mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 16:33:56 +01:00
cool fixes yea
This commit is contained in:
parent
d1c7180d5d
commit
d255742743
|
@ -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
|
||||||
|
|
|
@ -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']
|
||||||
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in a new issue