Commit Graph
3 Commits
Author SHA1 Message Date
Satya Devineni f9004ca0a8 Adding zero-shot classifier support (#3952)
* main into zero shot, post refactoring

* cleanup

* cleanup

* CR feedback: fixed the residency document clarification bug

* cr feedback: fake tests with propoer assertions

* pr feedback: better policy checks and logging for backend failures

* pr feedback: adding on_truncation

* pr feedback: adding the truncation support for classifier and fixing documentation issues

* CI fix and doc enhancement

* pr feedback: fixed edge cases

* added check for 0.3.7 truncated verification

* Added the example lfm2 ONNX model

* pr feedback: added max-length and 3 flag truncate flags

* pin bump to 0.4.0 and more tests for zero-shot

* CI fix

* pr feedback: clarified on the PII detector
2026-10-29 17:21:53 +00:00
1d56aafa3a [Router] llm router classifier + routing.router desugaring (#2405) (#2698)
* [Router] llm router classifier + routing.router desugaring (#2405)

* Address review: authored-name labels, exact-only matching, trace label, schema alignment (#2698)

* clean the patch

* Address 2nd review: classifier slot, constrained router invocation, structured choice (#2698)

* Fixing CMakeLists afet -> Address 2nd review: classifier slot, constrained router invocation, structured choice (#2698)

* drop classifier-slot changes (deferred to #2725); enforce structured-reply contract (#2698)

* [Router] Structured routing context for llm router + per-candidate trace rationale (#2698)

* [CI] Build and run RoutingPolicyLlmRouterTest in Linux/macOS C++ test steps (#2698)

* [CI] Restore Tiny-Test-Model-GGUF to SmolLM2; add Tiny-Gemma-Test-Model-GGUF (#2698)

* Revert "[CI] Restore Tiny-Test-Model-GGUF to SmolLM2; add Tiny-Gemma-Test-Model-GGUF (#2698)"

This reverts commit 8e540437a7.

* [Router] Deterministic L0a live test via mock cloud router (#2698)

* fix(router): stabilize LLM router CI contract

---------

Co-authored-by: QuOussama <[email protected]>
Co-authored-by: Florian Reinle <[email protected]>
2026-07-20 13:24:43 +00:00
eddierichter-amd 1665d1be77 Router/2386 decision trace response (#2606)
* feat(router): expose route decisions in responses

Carry the router Decision through collection.router dispatch and attach it additively as x_lemonade_route for non-streaming responses. Surface the matched rule in x-lemonade-route headers and inject the same decision metadata into routed SSE streams while keeping route_trace stripped before backend forwarding.

* test(router): cover route decision response metadata

Extend router endpoint coverage for matched-rule decisions, default-route decisions, route_trace output, opaque outputs pass-through, and streaming /responses x_lemonade_route injection.

* fix(router): harden route decision streaming metadata

Make routed SSE decision injection tolerant of LF, CRLF, CR, and chunk-split event separators by moving the response helpers into a focused route_decision_response module with direct tests. Collapse the three streaming response handlers through one shared content-provider helper and add live endpoint coverage for streaming chat, completions, and responses. Emit an explicit default route header for routed default decisions, and validate route rule ids as safe header tokens at policy parse/schema time.
2026-07-09 21:59:21 +00:00