|
35 | 35 | router = APIRouter(prefix="/v1", tags=["anthropic-proxy"]) |
36 | 36 |
|
37 | 37 | # Configuration |
38 | | -BRIGADE_URL = os.environ.get("BRIGADE_URL", "http://unicorn-brigade:8112") |
| 38 | +# BRIGADE_URL = os.environ.get("BRIGADE_URL", "http://unicorn-brigade:8112") # Deprecated - replaced by Claude Agents |
39 | 39 | LITELLM_URL = os.environ.get("LITELLM_URL", "http://localhost:4000") |
40 | 40 | KEYCLOAK_URL = os.environ.get("KEYCLOAK_URL", "https://auth.your-domain.com") |
41 | 41 |
|
@@ -362,16 +362,16 @@ def convert_sse_event(brigade_event: str, model: str) -> Dict[str, Any]: |
362 | 362 | async def health_check(): |
363 | 363 | """Health check for the proxy service""" |
364 | 364 | try: |
365 | | - # Check Brigade connectivity |
| 365 | + # Check Claude Agents connectivity |
366 | 366 | async with httpx.AsyncClient(timeout=5.0) as client: |
367 | | - brigade_health = await client.get(f"{BRIGADE_URL}/health") |
368 | | - brigade_status = brigade_health.status_code == 200 |
| 367 | + claude_agents_health = await client.get("http://localhost:8084/api/v1/claude-agents/health") |
| 368 | + claude_agents_status = claude_agents_health.status_code == 200 |
369 | 369 | except: |
370 | | - brigade_status = False |
| 370 | + claude_agents_status = False |
371 | 371 |
|
372 | 372 | return { |
373 | | - "status": "healthy" if brigade_status else "degraded", |
374 | | - "brigade_connected": brigade_status, |
| 373 | + "status": "healthy" if claude_agents_status else "degraded", |
| 374 | + "claude_agents_connected": claude_agents_status, |
375 | 375 | "timestamp": datetime.utcnow().isoformat() |
376 | 376 | } |
377 | 377 |
|
|
0 commit comments