litellm/prompt_compression/headroom/render.yaml
Krrish Dholakia 65b8660c80 feat(prompt-compression): add headroom compression plugin
Microservice that wraps headroom-ai as a LiteLLM pre_call guardrail.
Compresses tool outputs and JSON arrays before they reach the LLM
provider using headroom's smart_crusher (JSON dedup + schema compression)
and kompress (prose/log compression). Returns compressed structured_messages
via the generic guardrail API, which required adding structured_messages
support to GenericGuardrailAPIResponse.
2026-06-25 19:49:26 -07:00

12 lines
288 B
YAML

services:
- type: web
name: headroom-guardrail
runtime: docker
plan: starter
dockerfilePath: ./Dockerfile
envVars:
- key: HEADROOM_DEFAULT_MODEL
value: gpt-4o-mini
- key: GUARDRAIL_API_KEY
generateValue: true
healthCheckPath: /health