This topic lists the supported Python versions, third-party components, and frameworks for the ARMS agent for Python.
Supported Python version
Python 3. For more information, see Python 3.
Usage notes
If you need to use Gunicorn for application startup, change unicorn to gunicorn in the command.
Use Unicorn:
unicorn -w 4 -b 0.0.0.0:8000 app:app
Use Gunicorn:
gunicorn -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 app:app
If Gevent is used, set the
GEVENT_ENABLE
environment variable totrue
.Assuming that your application contains the following code:
from gevent import monkey monkey.patch_all()
Set the
GEVENT_ENABLE
environment variable totrue
.GEVENT_ENABLE=true
Supported components
Large language model
Component | Python Package Index (PyPI) Repository address | Minimum version | Maximum version |
OpenAI | V1.0.0 | Not specified | |
Dashscope | V1.0.0 | Not specified | |
Llama-index | V0.10.5 | V0.10.43 | |
Langchain | V0.1.0 | Not specified |
RPC framework
Component | PyPI Repository address | Minimum version | Maximum version |
FastAPI | V0.58 | Not specified | |
asgiref | V3.0 | Not specified | |
aiohttp | V3.0 | Not specified | |
Django | V1.10 | Not specified | |
WSGI | None | Not specified | Not specified |
Flask | V1.0 | Not specified | |
Requests | V2.0 | Not specified |