from fastapi import APIRouter from app.config import get_settings import logging logger = logging.getLogger(__name__) router = APIRouter() @router.get("/api/info") def info(): # Moved from "/" so the React SPA can own the root path when the bundle # is mounted in single-container (HF Spaces) deployments. The banner is # still useful as a quick liveness check for ops. title = get_settings().app.title return { "message": f"{title} Backend is up and running", "version": "1.0.0", "features": [ "Configurable Personas", "Improved Session Management", "Unified Context Handling", "Ollama Support", "Gemini API Support", "Provider Switching" ] }