Installing and deploying AIRouter is divided into the following steps, which require preparing a specific environment in advance:
- Environmental requirements: Python 3.7+ required, Linux/macOS recommended, and Git, Docker (optional), and MySQL installed.
- clone warehouse: Enter the directory after cloning the project code via Git:
git clone https://github.com/THESIS-AGENT/AIRouter.git && cd AIRouter
- Dependent Installation: optionally installed as a Python package (recommended)
pip install -e .
) or install the dependencies directly (pip install -r requirements.txt
). - configure: You need to fill in the API key and database information, copy the example file and modify it to the real value.
- Starting services: Docker containerized deployment is recommended (
docker-compose up -d
), or manually start the health check and key management services.
take note of: MySQL needs to create the database and table structure in advance, and Docker deployment needs to ensure that the port is not occupied.
This answer comes from the articleAIRouter: Intelligent Routing Tool for Calling Multiple Models with Unified API InterfaceThe