adaptive-memory-multi-model-router 2.14.22 → 2.14.24

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 (53) hide show
  1. package/.a3m-vault.json +20 -11
  2. package/README.md +1 -1
  3. package/README.md.bak +836 -0
  4. package/benchmark-results.json +25 -25
  5. package/dist/benchmark/reproducible.d.ts.map +1 -0
  6. package/dist/cache/semanticCache.d.ts.map +1 -1
  7. package/dist/cost/costTracker.d.ts.map +1 -1
  8. package/dist/ensemble.d.ts +12 -2
  9. package/dist/ensemble.js +11 -6
  10. package/dist/integrations/oauth.js +3 -3
  11. package/dist/integrations/oauth.js.map +1 -1
  12. package/dist/observability/metrics.d.ts +1 -2
  13. package/dist/observability/metrics.js +2 -0
  14. package/dist/observability/metrics.js.map +1 -1
  15. package/dist/observability/tracer.d.ts +1 -1
  16. package/dist/observability/tracer.js +2 -0
  17. package/dist/observability/tracer.js.map +1 -1
  18. package/dist/providers/providerConfig.d.ts.map +1 -1
  19. package/dist/routing/advancedRouter.d.ts +1 -0
  20. package/dist/routing/advancedRouter.d.ts.map +1 -1
  21. package/dist/routing/advancedRouter.js +77 -6
  22. package/dist/routing/advancedRouter.js.map +1 -1
  23. package/dist/routing/providerHealth.d.ts +0 -1
  24. package/dist/routing/providerHealth.js +3 -0
  25. package/dist/routing/providerHealth.js.map +1 -1
  26. package/dist/routing/providerRetry.js.map +1 -1
  27. package/dist/routing/routing/advancedRouter.js +90 -17
  28. package/dist/routing/utils/costUtils.js +149 -0
  29. package/dist/routing/utils/sorting.js +36 -0
  30. package/dist/sdk.d.ts +12 -1
  31. package/dist/server/proxyServer.d.ts.map +1 -1
  32. package/dist/tui/index.js +4 -1
  33. package/dist/tui/index.js.map +1 -1
  34. package/dist/utils/costUtils.d.ts.map +1 -0
  35. package/dist/utils/sorting.d.ts.map +1 -0
  36. package/dist/utils/tokenUtils.d.ts.map +1 -1
  37. package/package.json +33 -9
  38. package/src/ensemble.ts +42 -20
  39. package/src/integrations/oauth.ts +3 -3
  40. package/src/observability/metrics.ts +1 -1
  41. package/src/observability/tracer.ts +1 -1
  42. package/src/routing/advancedRouter.ts +129 -54
  43. package/src/routing/providerHealth.ts +0 -1
  44. package/src/routing/providerRetry.ts +1 -1
  45. package/src/sdk.ts +1 -1
  46. package/src/tui/index.ts +4 -1
  47. package/submissions/benchmarks/ALL_PLATFORMS_SUBMISSION.md +94 -0
  48. package/submissions/benchmarks/LLMROUTERBENCH_SUBMISSION.md +166 -0
  49. package/submissions/benchmarks/MMRBENCH_SUBMISSION.md +230 -0
  50. package/submissions/benchmarks/ROUTERARENA_UPDATE.md +112 -0
  51. package/submissions/benchmarks/ROUTERBENCH_SUBMISSION.md +225 -0
  52. package/tsconfig.build.json +9 -2
  53. package/research/PUBLISH_LOG.md +0 -3
package/.a3m-vault.json CHANGED
@@ -1,23 +1,32 @@
1
1
  [
2
2
  {
3
- "id": "bmmpvbaxaf",
3
+ "id": "bmmpyjmyfa",
4
4
  "query": "What is TCP fast retransmit?",
5
- "response": "3 duplicate ACKs",
5
+ "response": "3 duplicate ACKs trigger fast retransmit",
6
6
  "model": "nvidia/llama-3.1-8b",
7
- "timestamp": 1780324605447,
7
+ "timestamp": 1780520002246,
8
8
  "tags": [
9
- "networking",
10
- "tcp"
9
+ "networking"
11
10
  ]
12
11
  },
13
12
  {
14
- "id": "bmmpvbaxag",
15
- "query": "What is MTU?",
16
- "response": "Maximum Transmission Unit",
17
- "model": "nvidia/llama-3.1-8b",
18
- "timestamp": 1780324605448,
13
+ "id": "bmmpyjmyfb",
14
+ "query": "What is the strongest leather for bookbinding?",
15
+ "response": "Roan leather - made from sheepskin with a grained finish",
16
+ "model": "deepseek-chat",
17
+ "timestamp": 1780520002247,
19
18
  "tags": [
20
- "networking"
19
+ "library"
20
+ ]
21
+ },
22
+ {
23
+ "id": "bmmpyjmyfc",
24
+ "query": "How many volumes per thousand is reasonable loss?",
25
+ "response": "5 volumes per thousand",
26
+ "model": "mistralai",
27
+ "timestamp": 1780520002248,
28
+ "tags": [
29
+ "library"
21
30
  ]
22
31
  }
23
32
  ]
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  A3M doesn't just route—it orchestrates. By calling multiple providers in parallel, it ensures the highest quality answer is delivered with the lowest possible cost and latency.
8
8
 
9
- **🥇 RouterArena Cheapest Router ($0.05/1K) — 15K+ downloads in 2 weeks** — 3.6× cheaper than RouteLLM with highest robustness score (0.8524). No training required, runs in <1ms.
9
+ **🥇 RouterArena Cheapest Router ($0.05/1K) — 16K+ downloads · 67% exact tier · 96% ±1 tier · highest robustness (0.8524)** — 3.6× cheaper than RouteLLM with parallel ensemble voting. No training required, <1ms routing.
10
10
 
11
11
  **Try it in 1 second (no install needed):**
12
12