MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _content_cap_bytes

Function _content_cap_bytes

uncommon_route/proxy.py:698–706  ·  view source on GitHub ↗

Per-row size cap for captured content. 0 disables truncation entirely.

()

Source from the content-addressed store, hash-verified

696
697
698def _content_cap_bytes() -> int:
699 """Per-row size cap for captured content. 0 disables truncation entirely."""
700 raw = os.environ.get("UNCOMMON_ROUTE_CONTENT_CAP_BYTES", "").strip()
701 if not raw:
702 return 256 * 1024
703 try:
704 return int(raw)
705 except ValueError:
706 return 256 * 1024
707
708
709def _capture_non_streaming(

Callers 1

_build_capture_dictFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected