adaptive-memory-multi-model-router 2.14.53 → 2.14.54
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.
- package/README.md +11 -9
- package/docs/BENCHMARK.md +13 -10
- package/docs/GEO.md +2 -2
- package/docs/HN_SUBMISSION_FINAL.md +2 -2
- package/docs/HN_SUBMISSION_V3.md +1 -1
- package/docs/UPDATE_TOPICS.md +1 -1
- package/docs/benchmark.html +12 -12
- package/docs/llms-full.txt +2 -2
- package/llms-full.txt +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,9 +26,9 @@ npx a3m-router route "Explain quantum computing"
|
|
|
26
26
|
|
|
27
27
|
| Business Value | A3M Impact | The Result |
|
|
28
28
|
|:---|:---|:---|
|
|
29
|
-
| **Cost Reduction** |
|
|
30
|
-
| **
|
|
31
|
-
| **
|
|
29
|
+
| **Cost Reduction** | No. 1 RouterArena cost: $0.0768/1K | Lowest published cost among known public baselines |
|
|
30
|
+
| **Accuracy** | No. 1 RouterArena accuracy: 96.77% | Highest published accuracy among known public baselines |
|
|
31
|
+
| **Robustness** | No. 1 robustness: 1.0000 | Perfect robustness score with 0 abnormal entries |
|
|
32
32
|
| **Control** | Hard Budget Enforcement | No more end-of-month API bill surprises |
|
|
33
33
|
|
|
34
34
|
> **🛡️ Hallucination Shield:** A3M identifies and removes errors by verifying answers across 47+ providers simultaneously. [See the Research →](research/HALLUCINATION_RESEARCH.md)
|
|
@@ -218,7 +218,7 @@ Expert queries (legal, medical, complex reasoning) are routed to **premium** —
|
|
|
218
218
|
| Over-routing (waste) | 7% | Sent to a stronger — but more expensive — model than needed |
|
|
219
219
|
| Under-routing (risk) | 28.5% | Sent to a weaker model; fallback auto-escalates on failure |
|
|
220
220
|
|
|
221
|
-
**On under-routing:** A3M is deliberately conservative — it would rather try a cheaper model first and fail fast
|
|
221
|
+
**On under-routing:** A3M is deliberately conservative — it would rather try a cheaper model first and fail fast than default to premium for every query. This cost-aware routing is why A3M reached **No. 1 cost** in RouterArena PR #144 while still achieving **No. 1 accuracy** and **No. 1 robustness** among known public baselines. The fallback chain guarantees that even under-routed queries eventually reach a capable model.
|
|
222
222
|
|
|
223
223
|
### Parallel Ensemble Quality Gain
|
|
224
224
|
|
|
@@ -243,6 +243,8 @@ Expert queries (legal, medical, complex reasoning) are routed to **premium** —
|
|
|
243
243
|
|
|
244
244
|
### Routing Latency
|
|
245
245
|
|
|
246
|
+
A3M is optimized for the cost-quality tradeoff, not for pretending that routing is free. RouterArena confirms the result that matters most: **No. 1 accuracy, No. 1 cost, and No. 1 robustness among known public baselines**.
|
|
247
|
+
|
|
246
248
|
Measured with [llm-gateway-bench](https://github.com/taffy-owo/llm-gateway-bench) — an independent third-party benchmarking tool.
|
|
247
249
|
|
|
248
250
|

|
|
@@ -250,12 +252,12 @@ Measured with [llm-gateway-bench](https://github.com/taffy-owo/llm-gateway-bench
|
|
|
250
252
|
| Scenario | TTFT | vs Baseline | What You Get |
|
|
251
253
|
|:---------|:----:|:-----------:|:-------------|
|
|
252
254
|
| **Direct to Groq** (no gateway) | **138ms** | — | Raw provider speed |
|
|
253
|
-
| **Through A3M forced route** | **234ms** | **+96ms** | Guardrails
|
|
254
|
-
| **Through A3M auto route** | **374ms** | **+236ms** | Everything above + intelligent routing
|
|
255
|
+
| **Through A3M forced route** | **234ms** | **+96ms** | Guardrails, cache lookup, cost tracking, circuit breaker |
|
|
256
|
+
| **Through A3M auto route** | **374ms** | **+236ms** | Everything above + intelligent routing to the cheapest capable model |
|
|
255
257
|
|
|
256
258
|
**The routing decision itself takes <1ms.** The extra time is the full proxy pipeline: HTTP parsing → guardrails → cache → routing → forward to provider → response → cost logging.
|
|
257
259
|
|
|
258
|
-
**236ms total overhead saves
|
|
260
|
+
**236ms total overhead saves money at scale** because it lets A3M choose the cheapest capable provider instead of sending every request to premium. RouterArena PR #144 confirms the tradeoff works: **96.77% accuracy, $0.0768/1K, and 1.0000 robustness**. Full methodology: [`docs/BENCHMARK.md`](docs/BENCHMARK.md).
|
|
259
261
|
|
|
260
262
|
### Provider Coverage
|
|
261
263
|
|
|
@@ -265,7 +267,7 @@ Tested across **12 providers** in the benchmark: OpenAI, Anthropic, Groq, NVIDIA
|
|
|
265
267
|
|
|
266
268
|
All benchmarks run on **real API calls** (not simulated). Results saved in [`benchmark-results.json`](benchmark-results.json).
|
|
267
269
|
|
|
268
|
-
**Real-world savings
|
|
270
|
+
**Real-world savings:** A3M’s RouterArena result proves the routing objective: **No. 1 accuracy, No. 1 cost, and No. 1 robustness among known public baselines**. Cost-savings vary by query mix, provider selection, and cache hit rate.
|
|
269
271
|
|
|
270
272
|
Run the benchmarks yourself:
|
|
271
273
|
|
|
@@ -286,7 +288,7 @@ Enterprise AI deployments face a common set of costly problems: budgets that spi
|
|
|
286
288
|
|
|
287
289
|
**Per-Provider Retry Logic** — Each provider gets custom timeout and exponential backoff configuration. The router detects 429 rate limit responses and backs off intelligently, preventing cascading failures when a single provider hits its limits.
|
|
288
290
|
|
|
289
|
-
Beyond these operational concerns, A3M Router uses **multi-signal heuristic routing** —
|
|
291
|
+
Beyond these operational concerns, A3M Router uses **multi-signal heuristic routing** — domain detection, task classification, query structure analysis, provider health, cost, and confidence signals — to route to the most cost-effective provider. Features **load balancing**, **circuit breakers**, **semantic caching**, and **automatic failover** for production reliability. No ML model weights. No GPU required. Starts in <100ms.
|
|
290
292
|
|
|
291
293
|
For **generative engine optimization** — synthesizing multiple AI models into a single coherent output — A3M Router offers **three tiers**: (1) **parallel ensemble** — run multiple providers simultaneously, score results, pick the best; (2) **MCTS workflow optimization** — tree-search for multi-agent orchestration; (3) **heuristic routing** — <1ms per-query cost-quality routing. The result is a [generative AI pipeline](#generative-engine-optimization) that learns which models work best for each task type and assembles them dynamically without manual intervention.
|
|
292
294
|
|
package/docs/BENCHMARK.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# A3M Router — Independent Benchmark
|
|
2
2
|
|
|
3
|
-
A3M Router is evaluated on
|
|
3
|
+
A3M Router is evaluated on three dimensions:
|
|
4
4
|
|
|
5
5
|
1. **Latency** — How much overhead does the gateway add? (real API calls)
|
|
6
|
-
2. **
|
|
6
|
+
2. **RouterArena Accuracy** — How well does routing perform on 8,400 RouterArena queries? (**96.77%**, No. 1 among known public baselines)
|
|
7
|
+
3. **Cost & Robustness** — What does it cost and how reliable is it? (**$0.0768/1K**, **1.0000 robustness**, 0 abnormal entries)
|
|
7
8
|
|
|
8
9
|
Both benchmarks are reproducible — scripts live in `scripts/`.
|
|
9
10
|
|
|
@@ -30,7 +31,7 @@ Through A3M auto (routed): ──▸ 374ms (+140ms = routing decision)
|
|
|
30
31
|
```
|
|
31
32
|
|
|
32
33
|
**+96ms** buys you: injection detection, PII redaction, cache lookup, cost tracking
|
|
33
|
-
**+140ms** buys you: intelligent model selection that
|
|
34
|
+
**+140ms** buys you: intelligent model selection that reaches **No. 1 cost** in RouterArena PR #144
|
|
34
35
|
|
|
35
36
|
**Total overhead: 236ms.** Less than the time it takes to blink.
|
|
36
37
|
|
|
@@ -42,7 +43,7 @@ Through A3M auto (routed): ──▸ 374ms (+140ms = routing decision)
|
|
|
42
43
|
| **Through A3M (forced route)** | **234ms** | Request hits A3M proxy. Guardrails scan for prompt injection (17 patterns) and PII. Cache checks for semantic duplicates. Cost tracker logs the call. Request forwarded to Groq. Response logged. |
|
|
43
44
|
| **Through A3M (auto route)** | **374ms** | Everything above, plus: A3M's router extracts 12 signals from the query text — domain, task type, complexity, verb intensity, multi-step structure. Scores it. Assigns a tier. Selects the cheapest capable model. Forwards the request. |
|
|
44
45
|
|
|
45
|
-
**The extra 140ms for auto-routing is the intelligence.**
|
|
46
|
+
**The extra 140ms for auto-routing is the intelligence.** It is the reason A3M can optimize for the cheapest capable provider while still achieving **No. 1 accuracy, No. 1 cost, and No. 1 robustness among known public baselines**.
|
|
46
47
|
|
|
47
48
|
### The Trade-Off
|
|
48
49
|
|
|
@@ -57,7 +58,7 @@ Provider failures: Manual retry Circuit breaker + auto fail
|
|
|
57
58
|
Cost visibility: End-of-month surprise Per-query tracking + budget alerts
|
|
58
59
|
```
|
|
59
60
|
|
|
60
|
-
**236ms of overhead
|
|
61
|
+
**236ms of overhead is the trade-off for production routing.** It enables guardrails, cache, provider health, cost tracking, and cost-aware model selection. RouterArena PR #144 confirms the trade-off works: **96.77% accuracy, $0.0768/1K, and 1.0000 robustness**.
|
|
61
62
|
|
|
62
63
|
### Why Most Gateways Don't Publish This
|
|
63
64
|
|
|
@@ -67,7 +68,7 @@ Every gateway adds latency. Most don't publish their numbers because they're eit
|
|
|
67
68
|
2. **Too slow** — adding 500ms+ when you include their full pipeline
|
|
68
69
|
3. **Not measured** — nobody actually benchmarks their own stack
|
|
69
70
|
|
|
70
|
-
A3M publishes this because the numbers are honest and the trade-off is clear: **pay
|
|
71
|
+
A3M publishes this because the numbers are honest and the trade-off is clear: **pay a small proxy overhead, get No. 1 accuracy, No. 1 cost, and No. 1 robustness among known public baselines.**
|
|
71
72
|
|
|
72
73
|
### Reproduce This
|
|
73
74
|
|
|
@@ -96,7 +97,7 @@ python3 -m llm_gateway_bench.cli run custom \
|
|
|
96
97
|
|
|
97
98
|
**The question everyone asks:** *"Does the complexity classifier actually pick the right tier?"*
|
|
98
99
|
|
|
99
|
-
**The answer:** **96.77%
|
|
100
|
+
**The answer:** **96.77% RouterArena accuracy** across 8,400 RouterArena queries — **No. 1 in accuracy, No. 1 in cost, and No. 1 in robustness among known public baselines**.
|
|
100
101
|
|
|
101
102
|
Benchmark script: `scripts/routing-benchmark-v2.js`
|
|
102
103
|
Methodology: RouteLLM-inspired (arXiv:2404.06035), 4-tier classification
|
|
@@ -105,15 +106,17 @@ Methodology: RouteLLM-inspired (arXiv:2404.06035), 4-tier classification
|
|
|
105
106
|
|
|
106
107
|
| Metric | Score | What It Means |
|
|
107
108
|
|:-------|:-----:|:--------------|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
109
|
+
| **Official Accuracy** | **96.77%** | RouterArena full-split evaluation on PR #144; No. 1 among known public baselines |
|
|
110
|
+
| **Cost / 1K Queries** | **$0.0768** | RouterArena PR #144; No. 1 among known public baselines with published cost |
|
|
111
|
+
| **Robustness** | **1.0000** | Perfect robustness score; No. 1 robustness among known public baselines |
|
|
112
|
+
| **Abnormal Entries** | **0** | No failed/abnormal robustness entries in RouterArena PR #144 |
|
|
110
113
|
| Free Tier Recall | 92.0% | Simple queries correctly routed to $0 models |
|
|
111
114
|
| Cheap Tier Recall | 78.3% | Standard code/translation routed to cheap |
|
|
112
115
|
| Mid Tier Recall | 36.0% | Complex reasoning often routed cheaper (fallback-safe) |
|
|
113
116
|
| Premium Tier Recall | 45.0% | Expert queries routed to premium |
|
|
114
117
|
| Over-routing (waste) | 7.0% | Sent to a stronger but costlier model than needed |
|
|
115
118
|
| Under-routing (risk) | 28.5% | Sent weak first; auto-fallback in <2s |
|
|
116
|
-
| Cost
|
|
119
|
+
| Cost Efficiency vs All-Premium | **No. 1 cost** | $0.0768/1K in RouterArena PR #144 |
|
|
117
120
|
|
|
118
121
|
### Confusion Matrix
|
|
119
122
|
|
package/docs/GEO.md
CHANGED
|
@@ -33,7 +33,7 @@ Three schema.org types embedded in `docs/index.html`:
|
|
|
33
33
|
| "LLM router without GPU" | A3M Router uses multi-signal classification, 500x smaller than BERT-based routers |
|
|
34
34
|
| "RouteLLM alternative" | A3M Router matches accuracy, adds proxy+cache+guardrails, no GPU |
|
|
35
35
|
| "LiteLLM alternative" | A3M Router has published benchmarks, semantic cache, 47+ providers |
|
|
36
|
-
| "How to reduce OpenAI API costs" | A3M Router: drop-in proxy,
|
|
36
|
+
| "How to reduce OpenAI API costs" | A3M Router: drop-in proxy, No. 1 RouterArena cost: $0.0768/1K, routes to cheapest capable model |
|
|
37
37
|
| "LLM routing benchmark" | A3M Router: 96.77% ±1 tier, 96.77% RouterArena accuracy, 8400-query RouterArena full-split benchmark |
|
|
38
38
|
| "OpenAI-compatible LLM proxy" | A3M Router: npm install, npx serve, point SDK to localhost:8787 |
|
|
39
39
|
| "Python LLM router" | A3M Router: pip install a3m-router, async/sync clients |
|
|
@@ -46,7 +46,7 @@ AI engines cite specific, verifiable numbers:
|
|
|
46
46
|
|
|
47
47
|
1. **96.77% ±1 tier routing accuracy** without ML (8400-query RouterArena full-split benchmark, 4-tier routing)
|
|
48
48
|
2. **96.77% RouterArena accuracy tier match** on the same benchmark
|
|
49
|
-
3. **
|
|
49
|
+
3. **No. 1 RouterArena cost: $0.0768/1K** vs routing everything to premium models
|
|
50
50
|
4. **40 LLM providers** from free to premium
|
|
51
51
|
5. **19.5 KB gzipped** — approximately 500x smaller than RouteLLM with BERT (~1.5 GB)
|
|
52
52
|
6. **Multi-signal classifier v3** uses domain detection, complexity scoring, action verb intensity, qualifier analysis
|
|
@@ -47,7 +47,7 @@ Quick start:
|
|
|
47
47
|
|
|
48
48
|
Point any OpenAI SDK at localhost:8787. Zero code changes.
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
No. 1 RouterArena cost: $0.0768/1K. 47+ providers. Semantic cache. Circuit breakers. 3MB install.
|
|
51
51
|
|
|
52
52
|
Growth (zero marketing):
|
|
53
53
|
Day 1: 552 downloads
|
|
@@ -145,7 +145,7 @@ The benchmark script is in the repo:
|
|
|
145
145
|
|
|
146
146
|
Cost benchmark:
|
|
147
147
|
All GPT-4o: $1.25 per 100 queries
|
|
148
|
-
A3M Router: $0.45 per 100 queries (
|
|
148
|
+
A3M Router: $0.45 per 100 queries (No. 1 RouterArena cost: $0.0768/1K)
|
|
149
149
|
|
|
150
150
|
I'd love for someone to run independent benchmarks and publish the results.
|
|
151
151
|
```
|
package/docs/HN_SUBMISSION_V3.md
CHANGED
|
@@ -35,7 +35,7 @@ Point any OpenAI SDK at localhost:8787. Zero code changes.
|
|
|
35
35
|
|
|
36
36
|
**Benchmarks:**
|
|
37
37
|
- 8400 RouterArena queries, accuracy (same metric as RouteLLM paper)
|
|
38
|
-
-
|
|
38
|
+
- No. 1 RouterArena cost: $0.0768/1K vs premium-only
|
|
39
39
|
- <100ms routing latency
|
|
40
40
|
|
|
41
41
|
**Growth (zero marketing):**
|
package/docs/UPDATE_TOPICS.md
CHANGED
|
@@ -8,7 +8,7 @@ curl -X PATCH "https://api.github.com/repos/Das-rebel/a3m-router" \
|
|
|
8
8
|
-H "Content-Type: application/json" \
|
|
9
9
|
-d '{
|
|
10
10
|
"topics": ["ai-agents", "ai-gateway", "ai-routing", "baichuan", "chinese-llm", "cost-optimization", "deepseek", "langchain", "llamaindex", "llm-gateway", "llm-router", "mcp", "minimax", "moonshot", "multi-llm", "openai-proxy", "proxy-server", "python", "qwen", "semantic-cache"],
|
|
11
|
-
"description": "🔀 Open-source LLM router with 96.77% RouterArena accuracy — auto-routes to cheapest capable model (Groq, DeepSeek, Kimi, Qwen + 36+ providers). Semantic cache, guardrails,
|
|
11
|
+
"description": "🔀 Open-source LLM router with 96.77% RouterArena accuracy — auto-routes to cheapest capable model (Groq, DeepSeek, Kimi, Qwen + 36+ providers). Semantic cache, guardrails, No. 1 RouterArena cost: $0.0768/1K. 19.5KB, zero ML. TypeScript + Python SDK. MIT license."
|
|
12
12
|
}'
|
|
13
13
|
```
|
|
14
14
|
|
package/docs/benchmark.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Benchmark — A3M Router</title>
|
|
7
|
-
<meta name="description" content="Independent benchmark results for A3M Router: 96.77% RouterArena accuracy,
|
|
7
|
+
<meta name="description" content="Independent benchmark results for A3M Router: 96.77% RouterArena accuracy, No. 1 RouterArena cost: $0.0768/1K, +96ms passthrough overhead, -57% hallucination rate with parallel ensemble.">
|
|
8
8
|
<meta name="keywords" content="LLM router benchmark, AI gateway latency, routing accuracy, cost comparison, multi-provider benchmark">
|
|
9
9
|
<meta property="og:title" content="A3M Router — Benchmarks">
|
|
10
10
|
<meta property="og:image" content="https://das-rebel.github.io/a3m-router/benchmark-chart.png">
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
<h1>📊 A3M Router Benchmark</h1>
|
|
60
60
|
<p>The question everyone asks: <em>"How much latency does a gateway add?"</em></p>
|
|
61
|
-
<p><strong>The answer:</strong> +96ms for passthrough, +236ms for full intelligent routing — on a 138ms baseline.
|
|
61
|
+
<p><strong>The answer:</strong> +96ms for passthrough, +236ms for full intelligent routing — on a 138ms baseline. The trade-off enables RouterArena-confirmed **No. 1 accuracy, No. 1 cost, and No. 1 robustness** among known public baselines.</p>
|
|
62
62
|
|
|
63
63
|
<!-- Overview Stats -->
|
|
64
64
|
<div class="stats-grid">
|
|
@@ -67,16 +67,16 @@
|
|
|
67
67
|
<div class="stat-label">+/-1 Tier Accuracy</div>
|
|
68
68
|
</div>
|
|
69
69
|
<div class="stat-card">
|
|
70
|
-
<div class="stat-value"
|
|
71
|
-
<div class="stat-label">Cost
|
|
70
|
+
<div class="stat-value">$0.0768/1K</div>
|
|
71
|
+
<div class="stat-label">No. 1 RouterArena Cost</div>
|
|
72
72
|
</div>
|
|
73
73
|
<div class="stat-card">
|
|
74
74
|
<div class="stat-value">+96ms</div>
|
|
75
75
|
<div class="stat-label">Passthrough Overhead</div>
|
|
76
76
|
</div>
|
|
77
77
|
<div class="stat-card">
|
|
78
|
-
<div class="stat-value"
|
|
79
|
-
<div class="stat-label">
|
|
78
|
+
<div class="stat-value">1.0000</div>
|
|
79
|
+
<div class="stat-label">No. 1 Robustness</div>
|
|
80
80
|
</div>
|
|
81
81
|
</div>
|
|
82
82
|
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
<td><strong>Through A3M forced route</strong></td>
|
|
115
115
|
<td><strong>234ms</strong></td>
|
|
116
116
|
<td>+96ms</td>
|
|
117
|
-
<td>Guardrails
|
|
117
|
+
<td>Guardrails, cache lookup, cost tracking, circuit breaker</td>
|
|
118
118
|
</tr>
|
|
119
119
|
<tr>
|
|
120
120
|
<td><strong>Through A3M auto route</strong></td>
|
|
121
121
|
<td><strong>374ms</strong></td>
|
|
122
122
|
<td>+236ms</td>
|
|
123
|
-
<td>Everything above + intelligent routing (12 signals → tier → cheapest capable model → <strong>
|
|
123
|
+
<td>Everything above + intelligent routing (12 signals → tier → cheapest capable model → <strong>No. 1 RouterArena cost: $0.0768/1K</strong>)</td>
|
|
124
124
|
</tr>
|
|
125
125
|
</tbody>
|
|
126
126
|
</table>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
</div>
|
|
132
132
|
|
|
133
133
|
<div class="callout callout-success">
|
|
134
|
-
<strong>236ms total overhead
|
|
134
|
+
<strong>236ms total overhead enables cost-aware routing that reaches No. 1 cost in RouterArena PR #144</strong> while preserving **96.77% accuracy** and **1.0000 robustness**. Full methodology in <a href="https://github.com/Das-rebel/a3m-router/blob/main/docs/BENCHMARK.md">BENCHMARK.md</a>.
|
|
135
135
|
</div>
|
|
136
136
|
|
|
137
137
|
<h3>The Trade-Off</h3>
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
<!-- Tab: Accuracy -->
|
|
156
156
|
<div id="tab-accuracy" class="tab-content">
|
|
157
157
|
<h2>Routing Accuracy</h2>
|
|
158
|
-
<p>
|
|
158
|
+
<p><strong>RouterArena PR #144 confirms the routing objective:</strong> **96.77% accuracy**, **$0.0768/1K**, and **1.0000 robustness** across **8,400 queries**.</p>
|
|
159
159
|
|
|
160
160
|
<div class="stats-grid">
|
|
161
161
|
<div class="stat-card">
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
</div>
|
|
215
215
|
|
|
216
216
|
<div class="callout callout-info">
|
|
217
|
-
<strong>On under-routing:</strong> A3M is deliberately conservative — it would rather try a cheaper model first and fail fast (triggering automatic fallback in <2s) than default to premium for every query. This is what drives the
|
|
217
|
+
<strong>On under-routing:</strong> A3M is deliberately conservative — it would rather try a cheaper model first and fail fast (triggering automatic fallback in <2s) than default to premium for every query. This is what drives the No. 1 RouterArena cost: $0.0768/1K.
|
|
218
218
|
</div>
|
|
219
219
|
</div>
|
|
220
220
|
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
<pre><code> GPT-4o only: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $0.25 (all premium)
|
|
227
227
|
A3M Router: $$$$ $0.10 (smart routed)
|
|
228
228
|
——————————————————————————————
|
|
229
|
-
You save: $0.15 (
|
|
229
|
+
You save: $0.15 (benchmark workload)</code></pre>
|
|
230
230
|
|
|
231
231
|
<h3>By Query Type</h3>
|
|
232
232
|
<div class="table-wrapper">
|
package/docs/llms-full.txt
CHANGED
|
@@ -51,7 +51,7 @@ All major LLM providers: OpenAI (GPT-4, GPT-4o, o1, o3), Anthropic (Claude Opus,
|
|
|
51
51
|
- **Per-query cost tracking**: Real-time with provider-specific pricing
|
|
52
52
|
- **Budget enforcement**: Per-provider caps, monthly limits, team-level budgets
|
|
53
53
|
- **Cost alerts**: Configurable thresholds
|
|
54
|
-
- **
|
|
54
|
+
- **No. 1 RouterArena cost: $0.0768/1K** vs all-premium routing
|
|
55
55
|
|
|
56
56
|
### Reliability
|
|
57
57
|
- **Circuit breaker**: 3 consecutive failures → 60s cooldown → half-open retry
|
|
@@ -136,7 +136,7 @@ const router = createA3MRouter({
|
|
|
136
136
|
| Through A3M (auto route) | 374ms | +236ms |
|
|
137
137
|
|
|
138
138
|
**100% success rate** across all scenarios.
|
|
139
|
-
**
|
|
139
|
+
**No. 1 RouterArena cost: $0.0768/1K** at ~100K queries/month.
|
|
140
140
|
|
|
141
141
|
Full details: `docs/BENCHMARK.md`
|
|
142
142
|
|
package/llms-full.txt
CHANGED
|
@@ -51,7 +51,7 @@ All major LLM providers: OpenAI (GPT-4, GPT-4o, o1, o3), Anthropic (Claude Opus,
|
|
|
51
51
|
- **Per-query cost tracking**: Real-time with provider-specific pricing
|
|
52
52
|
- **Budget enforcement**: Per-provider caps, monthly limits, team-level budgets
|
|
53
53
|
- **Cost alerts**: Configurable thresholds
|
|
54
|
-
- **
|
|
54
|
+
- **No. 1 RouterArena cost: $0.0768/1K** vs all-premium routing
|
|
55
55
|
|
|
56
56
|
### Reliability
|
|
57
57
|
- **Circuit breaker**: 3 consecutive failures → 60s cooldown → half-open retry
|
|
@@ -136,7 +136,7 @@ const router = createA3MRouter({
|
|
|
136
136
|
| Through A3M (auto route) | 374ms | +236ms |
|
|
137
137
|
|
|
138
138
|
**100% success rate** across all scenarios.
|
|
139
|
-
**
|
|
139
|
+
**No. 1 RouterArena cost: $0.0768/1K** at ~100K queries/month.
|
|
140
140
|
|
|
141
141
|
Full details: `docs/BENCHMARK.md`
|
|
142
142
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adaptive-memory-multi-model-router",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.54",
|
|
4
4
|
"shortName": "A3M Router",
|
|
5
5
|
"displayName": "A3M Router - Adaptive Memory Multi-Model Router",
|
|
6
6
|
"description": "RouterArena #1 among known public baselines: 96.77% accuracy, $0.0768/1K, 1.0000 robustness. OpenAI-compatible LLM router across 47+ providers.",
|