From c5e5fc9c7a84b2476a8d19f430268bd861438946 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 6 May 2026 23:35:00 +0000 Subject: [PATCH] fix: restore default of require_auth_for_metrics_endpoint to False Changing the default to True silently broke existing Prometheus/Grafana scrape jobs that hit /metrics without an API key. Restore the prior opt-in behavior so monitoring keeps working on upgrade. --- litellm/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/__init__.py b/litellm/__init__.py index 5305edc9be6..6c780231d2a 100644 --- a/litellm/__init__.py +++ b/litellm/__init__.py @@ -166,7 +166,7 @@ langfuse_default_tags: Optional[List[str]] = None langsmith_batch_size: Optional[int] = None prometheus_initialize_budget_metrics: Optional[bool] = False prometheus_latency_buckets: Optional[List[float]] = None -require_auth_for_metrics_endpoint: Optional[bool] = True +require_auth_for_metrics_endpoint: Optional[bool] = False argilla_batch_size: Optional[int] = None datadog_use_v1: Optional[bool] = False # if you want to use v1 datadog logged payload. gcs_pub_sub_use_v1: Optional[bool] = (