-
Install dependencies
pip install . -
Configure and export environment variables
cp .env.example .env # update variables after copy export $(cat .env | grep -v ^# | xargs)
[!NOTE] The database setup by
OPENGATELLM_DATABASE_URLenvironment variable must be the same as the database used by the API specified inOPENGATELLM_URLenvironment variable. -
Run API locally
uvicorn opengaterag.api.app:app --reload
-
Install dependencies
pip install ".[test]" -
Run tests
pytest opengaterag/api/tests/unit/