Download app/api/debug.py from ketannnn/litagent: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/ketannnn/litagent/resolve/main/app/api/debug.py
- Command line
-
hf download hf://spaces/ketannnn/litagent/app/api/debug.py
-
curl -L -o debug.py https://huggingface.co/spaces/ketannnn/litagent/resolve/main/app/api/debug.py
309 Bytes
| from fastapi import APIRouter | |
| from ..core.llm import get_pool_status | |
| router = APIRouter(prefix="/debug", tags=["debug"]) | |
| async def groq_key_status(): | |
| """Live snapshot of Groq key pool — shows which keys are active, tpm_limited, or exhausted.""" | |
| return get_pool_status() | |