We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60cea0 commit e26a39fCopy full SHA for e26a39f
backend/onyx/evals/tracing.py
@@ -8,7 +8,7 @@
8
from onyx.configs.app_configs import BRAINTRUST_PROJECT
9
10
11
-def _truncate_str(s: str, head=800, tail=200) -> str:
+def _truncate_str(s: str, head: int = 800, tail: int = 200) -> str:
12
if len(s) <= head + tail:
13
return s
14
return f"{s[:head]}…{s[-tail:]}[TRUNCATED {len(s)} chars to 10,000]"
0 commit comments