馃彙 feat: Stage YAML-Only Classifier Provider Settings - #16419
Draft
lia-by-librechat[bot] wants to merge 1 commit into
Draft
lia-by-librechat[bot] wants to merge 1 commit into
lia-by-librechat[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
Review handoff for head |
danny-avila
marked this pull request as draft
September 28, 2026 00:10
This branch has not been deployed
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
LibreChat's classifier configuration is currently bundled with a duplicate HTTP classifier in #16180. That leaves no independently reviewable application config for Jev and self-hosted Laya while the agents SDK classifier in LibreChat-AI/agents#561 is still draft. This PR introduces only a disabled-by-default YAML contract, not a model call, SDK dependency, adapter, probability policy, or consumer behavior.
classificationvalidates the selected provider, an optional full HTTP(S) URL and model, wire-envelope options, deadline/retry settings, optional authentication and the name of an environment variable holding a bearer key. Self-hosted Laya can use an operator-supplied/v1/systemoneURL without forcing a model or a key. Malformed endpoints fail config validation rather than throwing. AppService projects the validated configuration to a backend-only field and treats invalid blocks as disabled.Outbound classifier hosts are YAML-only. Admin upserts, field patches, tombstones and stored overrides cannot change the resolved provider, including when an override arrives as a dotted property. The example documents why Jev and Laya confidence thresholds must be evaluated independently. There is no classifier request or change to tool discovery or memory processing in this PR.
How it works
Once the SDK contract is ready, #16180 can use this config, remove its duplicate transport and import the released SDK. #16181 must preserve its existing deferred-tool and memory fallbacks, and must not use probability thresholds with an unmeasured LLM decision.
Type of change
Testing
Tested environments/configuration: Node 24; Jest with the repository's existing local MongoDB test setup; unauthenticated Laya config and deliberately invalid URLs. No inference services were contacted.
Automated tests:
packages/data-provider:specs/config-schemas.spec.tsandsrc/classification.spec.ts(168 passed);packages/data-schemas:src/app/service.spec.tsandsrc/app/resolution.spec.ts(71 passed);packages/api: admin config and AppService consumer tests (226 passed).npx tsc --noEmitpassed independently in each changed TypeScript workspace.build:data-provider,build:data-schemas, andbuild:apipassed.npm run static-checks -- --against origin/devpassed touched-file ESLint, Prettier, import sorting, and circular-dependency checks.Local Lighthouse:
npm run lighthousewas attempted; the production frontend build passed, but the disposable MongoMemoryServer stopped with an fassert error before any browser audit. No Chrome or Chromium executable is available on this host, so the Lighthouse median is unverified locally. This patch adds no database reads or browser payload; the CI Lighthouse lane is the independent gate. An inference comparison awaits SDK integration.Screenshots / recordings
Not applicable. This PR changes backend configuration only and adds no browser-visible controls.