mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 12:43:57 +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+
|
||||
- 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
|
||||
|
|
|
@ -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']
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue