AI Orchestrator - Phase 1 & 2 Déployées
Date: 17/01/2026 14:15
Status: ✅ TERMINÉ
Objectif
Créer une API REST pour gérer les outils IA sur win11 (RTX 3090), permettant de basculer d'un outil à l'autre automatiquement.
Réalisations
1. API FastAPI
2. Endpoints Implémentés
| Endpoint |
Méthode |
Description |
| /api/tools |
GET |
Liste tous les outils configurés |
| /api/tools/refresh |
GET |
Détecte les outils actifs |
| /api/tools/{id} |
GET |
Status d'un outil spécifique |
| /api/tools/{id}/start |
POST |
Démarre un outil (force=true pour switch) |
| /api/tools/{id}/stop |
POST |
Arrête un outil |
| /api/tools/stop-all |
POST |
Arrête tous les outils |
| /api/gpu |
GET |
Status GPU (VRAM, température, utilisation) |
| /health |
GET |
Healthcheck |
3. Outils Configurés
- Ollama (port 11434, autostart)
- ComfyUI (port 8188)
- Fooocus (port 7865)
- Wan2.1 (port 7860)
- Applio (port 6969)
- Bark TTS (port 7866)
- MusicGen (port 7867)
- SadTalker (port 7868)
- FaceFusion (port 7869)
- TripoSR (port 7870)
4. Communication SSH
- Container utilise SSH vers win11 (192.168.1.30)
- Clé SSH montée en volume readonly
- Commandes PowerShell pour start/stop des outils
5. Nginx
Fichiers Créés/Modifiés
- /stock_8to/33800-stack/projects/ai-orchestrator/app/main.py
- /stock_8to/33800-stack/projects/ai-orchestrator/Dockerfile
- /stock_8to/33800-stack/projects/ai-orchestrator/docker-compose.yml
- /stock_8to/33800-stack/projects/ai-orchestrator/requirements.txt
- /stock_8to/33800-stack/projects/ai-orchestrator/conf.gouroubleu.yml
- /stock_8to/33800-stack/monitoring/config.json (ajout service)
- /etc/nginx/sites-available/ai-orchestrator.conf (sur nginx.local)
Test
# API fonctionne
curl https://ai-orchestrator.33800.nowhere84.com/api/gpu
# {"vram_total":"24576 Mo","vram_used":"5421 Mo","vram_free":"18906 Mo","temperature":"52°C","gpu_util":"0%","active_tool":"bark"}
curl https://ai-orchestrator.33800.nowhere84.com/api/tools/refresh
# Détecte Ollama et Bark comme running
Phase 2 - Dashboard (14:25)
Page créée
Fonctionnalités
- Affichage status GPU en temps réel (VRAM, température, utilisation)
- Liste des 10 outils IA avec leur statut
- Boutons Start/Stop pour chaque outil
- Auto-refresh toutes les 30 secondes
- Notifications toast pour feedback utilisateur
- Navigation intégrée au dashboard principal
Prochaine Phase
- Phase 3 : Système de queue Redis pour requêtes en attente
Commits GitLab
- Initial commit avec API complète
- Fix port conflict (5500 → 5501) et route ordering