Skip to content

docs: pith guardrail (output-token profiles via webhook) - #1109

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

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

Conversation

@dex0shubham

Copy link
Copy Markdown

Adds an integration page for pith, a self-hosted output-token optimizer that works with Portkey through the built-in Webhook guardrail: a before-request mutator that appends a validated shorter-output instruction on pinned routes and an after-request check that records usage. No gateway code or credentials beyond the webhook URL and a bearer token.

Page: integrations/guardrails/pith.mdx, plus a nav entry in the Guardrails group. Install is pip install pith-optimizer (on PyPI). Source and benchmarks: https://github.com/dex0shubham/pith.

This branch has not been deployed

No deployments
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