Commit ·
1ee60d9
1
Parent(s): 8061397
added root page so hf won't error out
Browse files56 unmodified lines57585960616256 unmodified lines})# Health check endpoint for Docker/Hugging Face@app.get("/health")async def health_check():56 unmodified lines5758596061626364656667686970717273747576777879808182838485868788899056 unmodified lines})# Root endpoint - no authentication required@app.get("/")async def root():"""Root endpoint providing project information.No authentication required."""return {"name": "geminicli2api","description": "OpenAI-compatible API proxy for Google's Gemini models via gemini-cli","purpose": "Provides both OpenAI-compatible endpoints (/v1/chat/completions) and native Gemini API endpoints for accessing Google's Gemini models","version": "1.0.0","endpoints": {"openai_compatible": {"chat_completions": "/v1/chat/completions","models": "/v1/models"},"native_gemini": {"models": "/v1beta/models","generate": "/v1beta/models/{model}/generateContent","stream": "/v1beta/models/{model}/streamGenerateContent"},"health": "/health"},"authentication": "Required for all endpoints except root and health","repository": "https://github.com/user/geminicli2api"}# Health check endpoint for Docker/Hugging Face@app.get("/health")async def health_check():
src/main.py+28