Skip to content

Commit 72a1b49

Browse files
committed
.
1 parent 09381a4 commit 72a1b49

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

backend/onyx/evals/tracing.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@ def _truncate_str(s: str) -> str:
1616
return f"{s[:head]}{s[-tail:]}[TRUNCATED {len(s)} chars to {MASKING_LENGTH}]"
1717

1818

19-
def _should_mask(data: Any) -> bool:
20-
return len(str(data)) > MASKING_LENGTH
21-
22-
2319
def _mask(data: Any) -> Any:
2420
"""Mask data if it exceeds the maximum length threshold."""
25-
if not _should_mask(data):
21+
if not len(str(data)) <= MASKING_LENGTH:
2622
return data
2723
return _truncate_str(str(data))
2824

0 commit comments

Comments
 (0)