mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
added comments to disable repr
This commit is contained in:
parent
1eb6be9d44
commit
62a189f57c
1 changed files with 4 additions and 0 deletions
|
|
@ -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]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue