Skip to content

v1.14.0

Choose a tag to compare

@stackbilt-admin stackbilt-admin released this 07 Jun 11:10

@stackbilt/llm-providers v1.14.0

Worker gateway route-planning surface from issue #87. Additive only — no breaking changes.

Added

  • getGatewayRoutePlan() helper — packages canonical normalization, catalog routing, cache hints, capability checks, degradations, and warnings into a single Worker-friendly object for use behind OpenAI-compatible, Ollama-style, or Anthropic-compatible API routers. Accepts either compatibility LLMRequest or CanonicalLLMRequest input.
  • Route plan typesGatewayRoutePlan, GatewayRouteRequirements, GatewayRouteCapabilityReport, and GatewayRouteCachePlan describe the shape. Storage-agnostic — consumers map plan.cache onto their own KV / Cache API / D1 / R2 implementation.
  • LoRA degradation reporting — when a request carries lora and routing selects a non-Cloudflare provider, the plan reports a stripped degradation and warns that Cloudflare adapter ids are forwarded to Workers AI without validation.
  • Route plan testssrc/__tests__/gateway-routing.test.ts covers canonical→plan mapping, cache-hint handling, LoRA-on/off-Cloudflare paths, and built-in tool capability mismatches.

Validation

  • 21 test files / 441 tests passing locally and in CI
  • tsc --noEmit clean
  • Published with npm provenance

See the full entry in CHANGELOG.md.