Skip to content

docs: pith guardrail (output-token profiles) - #2271

Open
dex0shubham wants to merge 1 commit into
BerriAI:mainfrom
dex0shubham:docs-pith-guardrail
Open

dex0shubham wants to merge 1 commit into
BerriAI:mainfrom
dex0shubham:docs-pith-guardrail

Conversation

@dex0shubham

Copy link
Copy Markdown

Adds a guardrail page for pith, a self-hosted, keyless output-token optimizer that runs as a LiteLLM guardrail (pith.guardrail.PithGuardrail, mode: [pre_call, post_call]). It records usage per route and, once an offline sweep with an LLM judge has shown a shorter output profile to be equivalent to the baseline, appends that instruction to the last user message. Streaming is supported; it fails open; replays bypass the guardrail with X-Optimizer: bypass.

Page: docs/proxy/guardrails/pith.md, plus a sidebar entry next to the other third-party guardrails. Install is pip install pith-optimizer (on PyPI). Source and benchmarks: https://github.com/dex0shubham/pith.

@vercel

vercel Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
litellm Ready Ready Preview Oct 11, 2026 3:25pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 6268d36c Deployed Oct 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant