@drsamonline/router 0.12.15 → 0.12.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/explain.js +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drsamonline/router",
3
- "version": "0.12.15",
3
+ "version": "0.12.17",
4
4
  "description": "Routing decisions, strategies, circuit breaker.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/explain.js CHANGED
@@ -21,6 +21,12 @@ export function explainPlan(plan) {
21
21
  if (combo.strategy === 'cheapest') lines.push('Targets are ordered by blended cost, after the quality floor.');
22
22
  if (combo.strategy === 'weighted') lines.push('The first target is picked by weight; the rest are fallbacks in weight order.');
23
23
  if (combo.strategy === 'latency') lines.push('Targets are ordered by measured p50 from the ledger.');
24
+ if (combo.synthetic && combo.name === 'auto') {
25
+ lines.push(
26
+ `"auto" is built from your own combos: ${combo.cascade?.from ?? 'the cheapest'} for a simple prompt, ${combo.cascade?.to ?? 'the strongest'} for a complex one.`,
27
+ );
28
+ lines.push('Nothing is hidden: it appears in /v1/models like any other combo, and a combo you name "auto" yourself replaces it.');
29
+ }
24
30
  if (combo.strategy === 'quota-weighted') {
25
31
  lines.push('Targets are ordered by remaining budget headroom divided by turns already answered today, so the target with the most left to give goes first.');
26
32
  }