A FastAPI + Pydantic v2 + AI-provider-agnostic Python template, with CI delegated to muffy86/infra-automation.
uv sync
cp .env.example .env
uv run uvicorn ml_api.main:app --reload
curl http://localhost:8000/healthGET /health— service + provider + modelPOST /chat— body{"prompt": "...", "temperature": 0.7, "max_tokens": 1024}
pyproject.toml— uv-managed, ruff, mypy, pytest-asynciosrc/ml_api/main.py— FastAPI app with/healthand/chatsrc/ml_api/ai.py— provider-agnostic AI client with retriestests/test_health.py+tests/test_ai.py— smoke tests- CI delegates to
muffy86/infra-automation/.github/workflows/ci-python.yml@main