Docker and CI Automation for a Multi-Provider AI RouterDocker and CI Automation for a Multi-Provider AI Router
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Multi-Provider AI Router — Docker & CI Automation
I built a Python API that routes requests across configured AI providers, records routing diagnostics, and falls back to a local mock response when remote providers are unavailable.
What I implemented
Containerized the FastAPI application with Docker.
Added health-check verification.
Implemented provider-routing diagnostics and mock fallback handling.
Added automated tests for routing behavior, circuit-breaker recovery, and API errors.
Configured GitHub Actions to run tests and application checks automatically.
Validation
Docker image built and the container started successfully.
The /health endpoint returned online.
The mock fallback returned a response with routing diagnostics.
Eight automated tests passed locally, and GitHub Actions CI passed.
Scope and limitations: The mock fallback is not generated model output. Groq was tested previously; live Cerebras connectivity has not been verified. Streaming and per-request model selection are not implemented.
This project demonstrates my practical work with Python APIs, Docker, automated testing, and CI workflows.
Post image
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started