routeur_ia_api / .env.example
Cyril Dupland
Update voice API configuration: Add Twilio TURN server support and enhance ICE server retrieval logic. Update environment example and settings to include Twilio credentials. Introduce comprehensive client integration documentation for voice API.
0d9dbeb
raw
history blame
932 Bytes
# API Keys - REMPLACEZ PAR VOS VRAIES CLÉS
OPENAI_API_KEY=sk-your-openai-key-here
MISTRALAI_API_KEY=your-mistral-key-here
# JWT Security - CHANGEZ EN PRODUCTION
JWT_SECRET_KEY=dev-secret-key-change-in-production-use-secure-random-string
JWT_ALGORITHM=HS256
JWT_EXPIRATION_MINUTES=60
# API Config
API_TITLE=CAPL Routeur IA API
API_VERSION=1.0.0
ENVIRONMENT=development
# LangSmith (optionnel - pour monitoring)
LANGCHAIN_TRACING_V2=false
LANGCHAIN_API_KEY=
LANGCHAIN_PROJECT=routeur-ia
# Voice WebRTC ICE servers (STUN/TURN pour NAT traversal sur HF Spaces)
# Option 1: Config statique JSON (prioritaire si défini)
# VOICE_ICE_SERVERS='[{"urls":"stun:..."},{"urls":"turn:...","username":"...","credential":"..."}]'
# Option 2: Twilio TURN - souvent compatible HF Spaces (exemples streamlit-webrtc)
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
# Option 3: Metered API - fetch dynamique au démarrage
METERED_APP_NAME=
METERED_API_KEY=