The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
added comments to disable repr
harish-berri62a189f57c8a
diff --git a/litellm/types/integrations/prometheus.py b/litellm/types/integrations/prometheus.pyindex f13ec2534d9..f9e50ff0f49 100644--- a/litellm/types/integrations/prometheus.py+++ b/litellm/types/integrations/prometheus.py@@ -792,6 +792,10 @@ class UserAPIKeyLabelValues:)def __repr__(self) -> str:+ # Perf: this object is constructed on every Prometheus logging path; verbose+ # dataclass/Pydantic-style repr is expensive and often pulled in accidentally+ # via f-strings / debug logging. Return empty so accidental stringification+ # stays cheap. (Dataclass default `str()` delegates to `__repr__`.)return ""def model_dump(self) -> Dict[str, Any]: