From 094099eaac5db2e8991fa6974e814ecaa7e78aa1 Mon Sep 17 00:00:00 2001 From: simpleqt <89645338+simpleqt@users.noreply.github.com> Date: Fri, 4 Sep 2026 23:43:12 +0800 Subject: [PATCH] docs: fix ghost parameter and typos in docstrings - PrometheusLogger._mount_metrics_endpoint is a no-arg static method but documented a require_auth parameter and 'optional authentication' that is not implemented; the body mounts /metrics unconditionally - together_ai rerank handler: 'paramter' -> 'parameter' - utils.py add_dummy_tool: 'Relevent Issues' -> 'Relevant Issues' --- litellm/integrations/prometheus.py | 6 +----- litellm/llms/together_ai/rerank/handler.py | 2 +- litellm/utils.py | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/litellm/integrations/prometheus.py b/litellm/integrations/prometheus.py index 975a9bd8639..ad160ac8a7e 100644 --- a/litellm/integrations/prometheus.py +++ b/litellm/integrations/prometheus.py @@ -4260,11 +4260,7 @@ class PrometheusLogger(CustomLogger): @staticmethod def _mount_metrics_endpoint(): """ - Mount the Prometheus metrics endpoint with optional authentication. - - Args: - require_auth (bool, optional): Whether to require authentication for the metrics endpoint. - Defaults to False. + Mount the Prometheus metrics endpoint (no authentication). """ from prometheus_client import REGISTRY diff --git a/litellm/llms/together_ai/rerank/handler.py b/litellm/llms/together_ai/rerank/handler.py index b8079e52c97..8898453c52b 100644 --- a/litellm/llms/together_ai/rerank/handler.py +++ b/litellm/llms/together_ai/rerank/handler.py @@ -1,7 +1,7 @@ """ Re rank api -LiteLLM supports the re rank API format, no paramter transformation occurs +LiteLLM supports the re rank API format, no parameter transformation occurs """ from typing import Any, Final diff --git a/litellm/utils.py b/litellm/utils.py index 585b5dbe1a8..98d23b0adff 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -7745,7 +7745,7 @@ def add_dummy_tool(custom_llm_provider: str) -> list[ChatCompletionToolParam]: """ Prevent Anthropic from raising error when tool_use block exists but no tools are provided. - Relevent Issues: https://github.com/BerriAI/litellm/issues/5388, https://github.com/BerriAI/litellm/issues/5747 + Relevant Issues: https://github.com/BerriAI/litellm/issues/5388, https://github.com/BerriAI/litellm/issues/5747 """ return [ ChatCompletionToolParam(