From 07d49321a48d06ab96cce3642c136a2d8a139baa Mon Sep 17 00:00:00 2001 From: Chris Christiansen Date: Fri, 29 May 2026 23:07:09 +0000 Subject: [PATCH] fix(billing): Remove unused client_id from agent constructors --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index ac8e253..8416b8c 100644 --- a/main.py +++ b/main.py @@ -131,7 +131,7 @@ def auth_callback(code: str, state: str): @app.get("/billing/summary") def billing_summary(client_id: str = ""): try: - return BillingAgent(client_id=client_id or None).get_summary() + return BillingAgent().get_summary() except Exception as exc: return JSONResponse(status_code=500, content={"error": str(exc)}) @@ -139,7 +139,7 @@ def billing_summary(client_id: str = ""): @app.get("/billing/forecast") def billing_forecast(client_id: str = ""): try: - return BillingAgent(client_id=client_id or None).get_forecast() + return BillingAgent().get_forecast() except Exception as exc: return JSONResponse(status_code=500, content={"error": str(exc)}) @@ -147,7 +147,7 @@ def billing_forecast(client_id: str = ""): @app.get("/billing/anomalies") def billing_anomalies(client_id: str = ""): try: - return AnomalyDetector(client_id=client_id or None).detect_anomalies() + return AnomalyDetector().detect_anomalies() except Exception as exc: return JSONResponse(status_code=500, content={"error": str(exc)})