Conversation
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Guaris
marked this pull request as draft
September 17, 2026 20:47
Documents ai-prompt-compressor-v2 as a new AI Gateway 2.0 Policy (kong-ee#21675), covering both its kong and headroom compression providers. Sourced from the PR's actual schema/handler code rather than the PRD/ticket's field list, since the two diverge (see PR description for details). Adds a cross-link from the existing ai-prompt-compressor Policy page and a scopes.json entry.
Guaris
force-pushed
the
docs/ai-prompt-compressor-v2-headroom
branch
from
September 17, 2026 20:55
ad61eeb to
5d552c3
Compare
…2 Policy
Jekyll::Policies::Base#name does metadata.fetch('name') with no
default. Policies with a backing app/_kong_plugins/ page inherit
name/title/icon/etc. from it; this Policy has none (deliberately, per
the Konnect-only scope decision), so it must supply them directly in
its own frontmatter, matching the ai-nvidia-nemo-guardrail precedent
(the only other backing-plugin-less AI Gateway policy in the repo).
Fixes the build crash: key not found: "name" (KeyError) in
app/_plugins/generators/policies/base.rb:44.
Fold Headroom support into ai-prompt-compressor as a second backend (alongside the existing LLMLingua 2 / kong compressor service backend) instead of a separate ai-prompt-compressor-v2 Policy. The v2 split mirrored a Gateway-plugin-level naming decision from kong-ee#21675 (which keeps ai-prompt-compressor byte-identical and ships Headroom under a new plugin name for its own backward-compat reasons), but that's an implementation-internal detail, not a product decision. The PRD's own "purely additive" framing, and the real developer.konghq.com#7123 precedent, both treat this as one Policy gaining a new backend, not two Policies. Left a TODO flagging that the exact Headroom config field names/shape still need re-verification once kong-ee#21675 (or whatever supersedes it) actually lands, since as of now no code adds Headroom fields to ai-prompt-compressor's own schema. Deletes the ai-prompt-compressor-v2 Policy page and its scopes.json entry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents ai-prompt-compressor-v2 as a new AI Gateway 2.0 Policy (kong-ee#21675), covering both its kong and headroom compression providers. Sourced from the PR's actual schema/handler code rather than the PRD/ticket's field list, since the two diverge (see PR description for details). Adds a cross-link from the existing ai-prompt-compressor Policy page and a scopes.json entry.
Description
Fixes #issue
Preview Links
Checklist
descriptionentry in frontmatter.