Your LLM calls have retries. They still can't tell what's in the prompt, where it may go, or what it will cost.
Introducing VernLLM extensions: each covers one part of your LLM stack, guardrails, policy, routing, cost, hedging and logging, inside the call.
A $0.10 model that fails 40% of the time costs more than a $0.25 model that works.
vern-llm-router tracks usable answer rate from your own traffic and ranks providers by effective cost.
npm i vern-llm-router
Maybe this is the new evolution of AI engineering, where in-process is more preferable than a gateway?
Gateways still make sense for org wide keys and audit. But for one app, I'd rather the safety and routing live next to the call.
Your LLM calls have retries. They still can't tell what's in the prompt, where it may go, or what it will cost.
Introducing VernLLM extensions: each covers one part of your LLM stack, guardrails, policy, routing, cost, hedging and logging, inside the call.
Your LLM calls have retries. They still can't tell what's in the prompt, where it may go, or what it will cost.
Introducing VernLLM extensions: each covers one part of your LLM stack, guardrails, policy, routing, cost, hedging and logging, inside the call.
Logger writes one structured record per call, with retries, fallbacks and cache hits in it, plus rolling latency percentiles and slow call detection. Prompt and output text are never recorded.
https://t.co/kZk8Om9467
Hedge cuts the slow tail. When a provider is slower than it usually is, it sends the same call to the next one, keeps the first answer and cancels the other. The delay is learned, and extra traffic is capped at about 5% of calls.
https://t.co/JxEpPfJ4th
Usage prices every call from a table you supply and splits out spend wasted on rejected attempts. Budgets are checked before a call is sent, and one that would go over is rejected with no provider contacted.
https://t.co/CaICX7hUtM
Router picks the order a call tries its providers: by your rules, by weight, by load, or ranked on measured latency, cost and quality. A provider with an open breaker or no rate limit left moves to the back.
https://t.co/qeA8og6Gmh
Policy decides which providers a call may use, from rules over facts you declare, like region, and the labels guard found. It removes targets before anything is spent, fails closed, and a removed target never comes back through a retry.
https://t.co/28Gaj5HsgI
Guard checks what goes into a call and what comes out, streams included. It can label the call, swap values like emails for tokens before the provider sees them and restore them in the answer, or block it.
https://t.co/ALK5mY6ixk
I’ve been building VernLLM, an open source LLM call framework for TypeScript. Resilience, observability and control, in your own process.
If your app calls an LLM, I’d love your feedback. A star helps others find it.
npm i vern-llm
https://t.co/JWrvFzsGgp