Spaces:
Sleeping
Sleeping
refactor(llm): implement resilient multi-provider router, add circuit breaker, update models, and enforce 503 HTTP failovers
9f7a38c | import subprocess | |
| urls = [ | |
| "https://router.huggingface.co/hf-inference/v1/chat/completions", | |
| "https://huggingface.co/api/models", | |
| ] | |
| for url in urls: | |
| print(f"Testing {url}") | |
| result = subprocess.run(["curl", "-s", "-i", url, "-H", "Content-Type: application/json", "-d", "{}"], capture_output=True, text=True) | |
| print(result.stdout) | |
| print("-" * 40) | |