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'
This commit is contained in:
simpleqt 2026-09-04 23:43:12 +08:00
parent c8635ecc67
commit 094099eaac
3 changed files with 3 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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(