A serverless web application demonstrating the capabilities of different Azure AI Foundry models. This project provides an interactive interface to test and compare three powerful AI models:
- DeepSeek (Problem-solving focus)
- GPT-4 (Complex reasoning)
- Phi-3 (Efficient general tasks)
- Interactive UI for model testing
- Real-time performance metrics
- Response history tracking
- Performance comparison between models
- Token usage analytics
- Response time measurements
- React + TypeScript
- Vite
- TailwindCSS
- shadcn/ui components
- Environment-based configuration
- Python FastAPI
- Azure Key Vault integration
- Azure Managed Identity
- Docker containerization
The application uses:
- Azure Container Apps for hosting
- Azure Key Vault for secrets
- Azure AI Foundry models
- User-assigned Managed Identity
- Clone the repository
- Set up environment variables:
Frontend (.env):
VITE_BACKEND_URL=/api/v1
Backend (.env):
KEY_VAULT_URL=your-keyvault-url
MANAGED_IDENTITY_CLIENT_ID=your-managed-identity
- Start the development servers:
Frontend:
cd frontend
npm install
npm run dev
Backend:
cd backend
python -m venv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
pip install -r requirements.txt
python run.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.