feat(config): add context compression policy - #11556
Open
localai-org-maint-bot wants to merge 2 commits into
Open
feat(config): add context compression policy#11556localai-org-maint-bot wants to merge 2 commits into
localai-org-maint-bot wants to merge 2 commits into
Conversation
Define the opt-in model configuration contract before the chat middleware consumes it. Document each policy field so later request handling does not invent a second schema.\n\nRefs #9534\n\nAssisted-by: Codex:gpt-5
The model editor metadata gate rejects new config fields without descriptions and suitable controls. Register the compression policy so operators can edit its six fields safely. Assisted-by: Codex:gpt-5 [monitoring-prs]
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.
Description
compressionconfiguration contractThis is the configuration foundation for #9534. It does not close the issue: the chat request transformation and summarizer invocation remain follow-up work.
Verification
git diff --check HEAD^ HEADgo test ./core/configcould not run because this fresh worktree lacks generatedpkg/grpc/protosourcesmake protogencould not restore them because the environment denied the protobuf compiler download with HTTP 403Notes for Reviewers
The schema stays disabled by default. The documentation warns that enabling it does not transform requests until the middleware lands.
Signed commits