from fastapi import FastAPI
from fastapi.responses import HTMLResponse
import uvicorn
app = FastAPI(title="ORCHAT Enterprise")
HTML_CONTENT = """
🏭 ORCHAT Enterprise
🏭 ORCHAT Enterprise
Swiss Watch Precision AI CLI
✅ Status: Successfully deployed on HuggingFace Spaces
⏱️ Uptime: 50+ years engineering reliability
🔧 Version: v1.0.4 Production
🎯 Core Features:
- ✅ 50+ years engineering precision standards
- ✅ Multi-model AI (OpenRouter, Gemini, Claude)
- ✅ Real-time streaming responses
- ✅ Persistent conversation history
- ✅ Enterprise-grade logging & observability
- ✅ Debian package distribution
📦 Installation:
# Clone repository
git clone https://github.com/Ariyan-Pro/OR-CHAT-CLI.git
cd OR-CHAT-CLI
# Install dependencies
chmod +x bin/orchat
# Set API key
orchat config set --api-key YOUR_KEY
🔗 GitHub Repository:
📂 Ariyan-Pro/OR-CHAT-CLI
"""
@app.get("/", response_class=HTMLResponse)
async def read_root():
return HTML_CONTENT
@app.get("/health")
async def health_check():
return {"status": "healthy", "service": "ORCHAT Enterprise", "version": "1.0.4"}
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=7860, access_log=False)