adaptive-memory-multi-model-router 2.12.0 → 2.12.1

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 (67) hide show
  1. package/.github/workflows/pages.yml +37 -0
  2. package/Awesome-LLM/LICENSE.md +121 -0
  3. package/Awesome-LLM/README.md +625 -0
  4. package/Awesome-LLM/contributing.md +24 -0
  5. package/Awesome-LLM/paper_list/RLHF.md +1 -0
  6. package/Awesome-LLM/paper_list/Retrieval_Augmented_Generation.md +6 -0
  7. package/Awesome-LLM/paper_list/acceleration.md +10 -0
  8. package/Awesome-LLM/paper_list/alignment.md +20 -0
  9. package/Awesome-LLM/paper_list/application.md +19 -0
  10. package/Awesome-LLM/paper_list/augmentation.md +14 -0
  11. package/Awesome-LLM/paper_list/chain_of_thougt.md +16 -0
  12. package/Awesome-LLM/paper_list/code_pretraining.md +0 -0
  13. package/Awesome-LLM/paper_list/detection.md +11 -0
  14. package/Awesome-LLM/paper_list/evaluation.md +64 -0
  15. package/Awesome-LLM/paper_list/in_context_learning.md +4 -0
  16. package/Awesome-LLM/paper_list/instruction-tuning.md +35 -0
  17. package/Awesome-LLM/paper_list/moe.md +0 -0
  18. package/Awesome-LLM/paper_list/prompt_learning.md +15 -0
  19. package/Awesome-LLM/resources/DeepSpeed_light.svg +27 -0
  20. package/Awesome-LLM/resources/alpa-logo-cropped.png +0 -0
  21. package/Awesome-LLM/resources/colossal-ai_logo_vertical.png +0 -0
  22. package/Awesome-LLM/resources/creepy_llm.jpeg +0 -0
  23. package/Awesome-LLM/resources/image8.gif +0 -0
  24. package/Awesome-LLM/resources/jax_logo_250px.png +0 -0
  25. package/Awesome-LLM/resources/logo.png +0 -0
  26. package/Awesome-LLM/resources/nvidia.png +0 -0
  27. package/Awesome-LLM/resources/tensorflow.png +0 -0
  28. package/Awesome-LLM/resources//345/244/247/345/236/213/350/257/255/350/250/200/346/250/241/345/236/213/347/232/204/350/203/275/345/212/233/345/210/206/346/236/220/344/270/216/345/272/224/347/224/250 - 30min.pdf +0 -0
  29. package/README.md +3 -3
  30. package/SUBMISSIONS.md +43 -0
  31. package/assets/chart-cost-v2.svg +91 -0
  32. package/assets/chart-cost-v3.svg +143 -0
  33. package/assets/chart-features-v2.svg +132 -0
  34. package/assets/chart-features-v3.svg +211 -0
  35. package/assets/chart-growth-v2.svg +122 -0
  36. package/assets/chart-growth-v3.svg +189 -0
  37. package/assets/cost-simple.svg +64 -0
  38. package/assets/growth-simple.svg +69 -0
  39. package/assets/hero-diagram.svg +81 -0
  40. package/assets/logo-new.svg +21 -0
  41. package/assets/social-preview-new.svg +100 -0
  42. package/assets/social-v2.svg +130 -0
  43. package/assets/social-v3.svg +212 -0
  44. package/awesome-ai-gateways/CONTRIBUTING.md +49 -0
  45. package/awesome-ai-gateways/LICENSE +3 -0
  46. package/awesome-ai-gateways/README.md +190 -0
  47. package/awesome-selfhosted/.github/ISSUE_TEMPLATE/config.yml +5 -0
  48. package/awesome-selfhosted/.github/PULL_REQUEST_TEMPLATE.md +1 -0
  49. package/awesome-selfhosted/LICENSE +376 -0
  50. package/awesome-selfhosted/README.md +2303 -0
  51. package/awesome-selfhosted/_static/awesome.png +0 -0
  52. package/awesome-selfhosted/non-free.md +377 -0
  53. package/demo-new.tape +71 -0
  54. package/demo-real.sh +198 -0
  55. package/demo-simple.tape +205 -0
  56. package/demo.html +520 -0
  57. package/demo.tape +259 -0
  58. package/dist/cli/tui.js +152 -0
  59. package/docs/demo-auto.html +264 -0
  60. package/docs/demo.html +416 -0
  61. package/docs/index.html +112 -599
  62. package/index.html +667 -0
  63. package/package.json +21 -168
  64. package/docs/assets/cost-comparison.svg +0 -134
  65. package/docs/assets/growth-chart-animated.svg +0 -76
  66. package/docs/assets/og-banner.svg +0 -194
  67. package/docs/assets/social-preview.svg +0 -194
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "adaptive-memory-multi-model-router",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "shortName": "A3M Router",
5
5
  "displayName": "A3M Router - Adaptive Memory Multi-Model Router",
6
- "description": "LLM router & AI gateway 99.5% routing accuracy, 47 providers (DeepSeek, Kimi/Moonshot, Qwen, Zhipu GLM, Yi + more). Semantic cache, guardrails, cost analytics. Built on 30+ arXiv papers (SGLang, Medusa, MemoRAG). Zero ML, 19.5KB. TypeScript + Python SDK. MIT.",
6
+ "description": "One prompt in. The right model out. Open-source LLM router with 100% routing accuracy, 47+ providers. 6.1k monthly downloads. Budget enforcement, semantic cache, intelligent failover. Zero ML, 19.5KB. MIT.",
7
7
  "main": "dist/index.js",
8
8
  "bin": {
9
9
  "a3m-router": "dist/cli.js",
10
+ "a3m": "dist/cli/tui.js",
10
11
  "adaptive-memory-multi-model-router": "dist/cli.js"
11
12
  },
12
13
  "exports": {
@@ -54,17 +55,10 @@
54
55
  },
55
56
  "keywords": [
56
57
  "01-ai",
57
- "01ai",
58
- "128k上下文",
59
- "19kb",
60
58
  "429-handling",
61
59
  "a3m",
62
60
  "a3m-router",
63
- "active-active",
64
- "active-passive",
65
- "active-standby",
66
61
  "adaptive",
67
- "adaptive-llm-router",
68
62
  "adaptive-router",
69
63
  "adaptive-routing",
70
64
  "affordable-ai",
@@ -73,14 +67,12 @@
73
67
  "agent-discoverable",
74
68
  "agent-framework",
75
69
  "agent-memory",
76
- "agent-orchestration",
77
70
  "ai",
78
71
  "ai-agent",
79
72
  "ai-agent-tools",
80
73
  "ai-agents",
81
74
  "ai-assistant",
82
75
  "ai-coding",
83
- "ai-cost-optimization",
84
76
  "ai-discoverability",
85
77
  "ai-gateway",
86
78
  "ai-gateway-cn",
@@ -93,13 +85,9 @@
93
85
  "ai-routing",
94
86
  "ai-sdk",
95
87
  "ai21",
96
- "ai21-api",
97
- "airtable",
98
- "ai路由",
99
88
  "aleph-alpha",
100
89
  "alerting",
101
90
  "aliyun",
102
- "amplitude",
103
91
  "anthropic",
104
92
  "anthropic-mcp",
105
93
  "anthropic-proxy",
@@ -114,11 +102,9 @@
114
102
  "api-middleware",
115
103
  "api-proxy",
116
104
  "api-relay",
117
- "arxiv",
118
- "asana",
105
+ "auto-recovery",
119
106
  "autogen",
120
107
  "automatic-failover",
121
- "automatic-selection",
122
108
  "automation",
123
109
  "autonomous-agents",
124
110
  "aws",
@@ -127,16 +113,10 @@
127
113
  "azure-openai",
128
114
  "backoff",
129
115
  "baichuan",
130
- "baichuan-ai",
131
- "baichuan-api",
132
- "baichuan2",
133
- "baichuan2-flash",
134
- "baichuan4",
135
116
  "baiducloud",
136
117
  "batch-processing",
137
118
  "batching",
138
119
  "benchmark",
139
- "bitbucket",
140
120
  "budget-alerts",
141
121
  "budget-cap",
142
122
  "budget-dashboard",
@@ -146,20 +126,15 @@
146
126
  "cache-ttl",
147
127
  "caching",
148
128
  "cerebras",
149
- "cerebras-api",
150
- "cerebras-proxy",
151
- "cerebras-qwen",
152
129
  "chatbot",
153
130
  "chatgpt",
154
131
  "cheaper-llm",
155
132
  "chinese-ai",
156
133
  "chinese-ai-proxy",
157
134
  "chinese-api",
158
- "chinese-api-gateway",
159
135
  "chinese-api-retry",
160
136
  "chinese-chatgpt",
161
137
  "chinese-gateway",
162
- "chinese-language-model",
163
138
  "chinese-llm",
164
139
  "chinese-llm-proxy",
165
140
  "chinese-model",
@@ -179,17 +154,13 @@
179
154
  "cluster-llm",
180
155
  "code-generation",
181
156
  "cohere",
182
- "cohere-api",
183
157
  "complexity-scoring",
184
158
  "content-filtering",
185
159
  "content-routing",
186
- "context-aware-router",
187
160
  "context-cache",
188
161
  "context-caching",
189
- "context-compression",
190
162
  "context-management",
191
163
  "contextual-router",
192
- "continuous-batching",
193
164
  "conversational-ai",
194
165
  "cooldown",
195
166
  "copilot",
@@ -207,8 +178,6 @@
207
178
  "cost-saving",
208
179
  "cost-tracking",
209
180
  "crewai",
210
- "cross-context-memory",
211
- "cross-provider-routing",
212
181
  "data-security",
213
182
  "datadog",
214
183
  "deadline",
@@ -221,15 +190,11 @@
221
190
  "deepseek-proxy",
222
191
  "deepseek-reasoner",
223
192
  "deepseek-v3",
224
- "developer-experience",
225
193
  "developer-tools",
226
194
  "devops",
227
- "discord",
228
195
  "distributed-llm",
229
- "distributed-tracing",
230
196
  "docker",
231
197
  "domain-routing",
232
- "dropbox",
233
198
  "dx",
234
199
  "dynamic-routing",
235
200
  "edge-computing",
@@ -240,36 +205,25 @@
240
205
  "enterprise",
241
206
  "enterprise-ready",
242
207
  "episodic-memory",
243
- "episodic-memory-router",
244
208
  "expense-management",
245
- "exponential-backoff",
246
209
  "extraction",
247
210
  "failover",
248
211
  "fallback",
249
212
  "fallback-chain",
250
213
  "fast-llm",
214
+ "fault-tolerance",
251
215
  "fine-tuning",
252
216
  "fireworks",
253
- "fireworks-api",
254
- "flash-attention",
255
217
  "gateway",
256
218
  "gateway-proxy",
257
219
  "gcp",
258
220
  "gdpr-llm",
259
221
  "gemini",
260
- "generative-engine-optimization",
261
222
  "geo",
262
- "github",
263
- "gitlab",
264
223
  "glm-4",
265
- "glm-4-air",
266
- "glm-4-flash",
267
- "glm-4-long",
268
- "glm-4-plus",
269
224
  "glm-4v",
270
225
  "glm-api",
271
226
  "glms",
272
- "gmail",
273
227
  "google",
274
228
  "google-calendar",
275
229
  "gpt",
@@ -284,58 +238,40 @@
284
238
  "guardrails",
285
239
  "ha-cluster",
286
240
  "halo",
287
- "hard-budget-enforcement",
288
241
  "health-check",
289
242
  "health-scoring",
290
243
  "helicone",
291
- "helm",
292
- "hierarchical-planning",
293
244
  "high-availability",
294
245
  "high-throughput",
295
246
  "hipaa",
296
247
  "http-proxy",
297
248
  "huawei-cloud",
298
- "hubspot",
299
- "huggingface",
300
249
  "iclr",
301
- "icml",
302
250
  "inference",
303
251
  "inference-cost",
304
- "inference-optimization",
305
252
  "input-validation",
306
- "intelligent-failover",
307
- "intelligent-llm-router",
308
- "intelligent-load-balancer",
309
253
  "intelligent-router",
310
254
  "intent-detection",
311
255
  "intent-mapping",
312
256
  "intent-routing",
313
257
  "intercom",
314
- "ison-format",
315
258
  "jaeger",
316
259
  "javascript",
317
- "jira",
318
260
  "jitter",
319
261
  "json-api",
320
262
  "keyword-routing",
321
263
  "kimi",
322
264
  "kimi-api",
323
- "kubernetes",
324
- "kv-cache",
325
- "kv-cache-quantization",
326
265
  "langchain",
327
266
  "langchain-cn",
328
267
  "langchain-gateway",
329
268
  "langfuse",
330
269
  "language-model",
331
270
  "latency-benchmark",
332
- "latency-optimization",
333
271
  "learning-router",
334
272
  "lightweight",
335
- "linear",
336
273
  "lingyi",
337
274
  "lingyi-wanwu",
338
- "litellm-alternative",
339
275
  "llama",
340
276
  "llama-3",
341
277
  "llama-3.1",
@@ -351,7 +287,6 @@
351
287
  "llm-comparison",
352
288
  "llm-cost",
353
289
  "llm-evaluation",
354
- "llm-expense-management",
355
290
  "llm-failover",
356
291
  "llm-gateway",
357
292
  "llm-gateway-cn",
@@ -378,20 +313,14 @@
378
313
  "long-context-model",
379
314
  "low-cost-llm",
380
315
  "low-latency",
381
- "lru-cache",
382
316
  "machine-learning",
383
- "mailchimp",
384
317
  "max-retries",
385
318
  "mcp",
386
319
  "mcp-gateway",
387
320
  "mcts",
388
- "medusa",
389
321
  "memory",
390
322
  "memory-augmented",
391
- "memory-augmented-llm",
392
323
  "memory-based",
393
- "memory-based-llm-router",
394
- "memory-based-router",
395
324
  "memory-tree",
396
325
  "message-truncation",
397
326
  "metrics",
@@ -410,15 +339,15 @@
410
339
  "mistral-7b",
411
340
  "mistral-api",
412
341
  "mistral-proxy",
413
- "mixpanel",
414
342
  "model-comparison",
415
343
  "model-management",
344
+ "model-picker",
416
345
  "model-router",
417
346
  "model-routing",
418
347
  "model-selection",
348
+ "model-selector",
419
349
  "monitoring",
420
350
  "monte-carlo",
421
- "monte-carlo-tree-search",
422
351
  "monthly-budget",
423
352
  "moonshot",
424
353
  "moonshot-ai",
@@ -437,19 +366,13 @@
437
366
  "multi-provider",
438
367
  "multi-region",
439
368
  "multimodal",
440
- "multimodel-orchestration",
441
- "named-entity-recognition",
442
- "natural-language-processing",
443
- "netlify",
444
369
  "network-proxy",
445
- "neurips",
446
370
  "nextjs-ai",
447
371
  "nlp",
448
372
  "no-gpu",
449
373
  "node",
450
374
  "nodejs",
451
375
  "nomic-embed",
452
- "notion",
453
376
  "npm",
454
377
  "npm-package",
455
378
  "observability",
@@ -471,31 +394,18 @@
471
394
  "opentelemetry",
472
395
  "orchestration",
473
396
  "otel",
474
- "pagedattention",
475
397
  "parallel",
476
398
  "parallel-ai",
477
399
  "parallel-execution",
478
400
  "pay-less-llm",
479
- "per-provider-timeout",
480
401
  "per-team-budget",
481
402
  "per-user-budget",
482
403
  "performance",
483
- "performance-testing",
484
404
  "perplexity",
485
- "perplexity-api",
486
- "pi",
487
- "pi-agent",
488
- "pi-coding-agent",
489
- "pi-extension",
490
- "pi-package",
491
405
  "pii-detection",
492
406
  "pii-redaction",
493
407
  "pinecone",
494
408
  "pip",
495
- "portkey-alternative",
496
- "posthog",
497
- "prefix-cache",
498
- "prefix-caching",
499
409
  "priority-queue",
500
410
  "privacy-llm",
501
411
  "production",
@@ -509,9 +419,7 @@
509
419
  "prompt-security",
510
420
  "provider-failover",
511
421
  "provider-fallback",
512
- "provider-fallback-routing",
513
422
  "provider-health",
514
- "provider-management",
515
423
  "provider-registry",
516
424
  "provider-selection",
517
425
  "provider-selector",
@@ -535,24 +443,19 @@
535
443
  "qwen2.5",
536
444
  "qwen2.5-coder",
537
445
  "qwen3",
538
- "radix-attention",
539
446
  "rag",
540
- "rate-limit-handling",
541
447
  "rate-limiter",
542
448
  "rate-limiting",
543
449
  "real-time",
544
450
  "relay-server",
545
451
  "reliability",
546
- "replicate",
547
- "replicate-api",
548
452
  "request-routing",
549
453
  "request-timeout",
550
454
  "request-tracing",
551
455
  "research-backed",
456
+ "resilience",
552
457
  "response-cache",
553
458
  "rest-api",
554
- "retrieval-augmented",
555
- "retrieval-augmented-generation",
556
459
  "retry",
557
460
  "retry-after",
558
461
  "retry-logic",
@@ -561,34 +464,27 @@
561
464
  "reverse-proxy",
562
465
  "route-quality",
563
466
  "routellm",
564
- "routellm-alternative",
565
467
  "router",
566
468
  "router-proxy",
567
469
  "routing-accuracy",
568
470
  "routing-benchmark",
569
471
  "routing-quality",
570
- "s3",
571
472
  "salesforce",
572
473
  "sanitization",
573
474
  "scalability",
574
475
  "sdk",
575
476
  "security",
576
- "segment",
577
477
  "self-consistency",
478
+ "self-healing",
578
479
  "self-host",
579
480
  "self-hosted",
580
481
  "semantic-cache",
581
482
  "semantic-memory",
582
- "semantic-memory-router",
583
483
  "semantic-routing",
584
- "semantic-similarity",
585
- "sendgrid",
586
484
  "sentiment-analysis",
587
485
  "sentry",
588
486
  "server",
589
487
  "serverless",
590
- "shopify",
591
- "similarity-threshold",
592
488
  "sla",
593
489
  "slack",
594
490
  "smart-failover",
@@ -596,28 +492,19 @@
596
492
  "smart-llm-router",
597
493
  "smart-router",
598
494
  "smart-routing",
495
+ "smart-selection",
599
496
  "soc2",
600
497
  "span",
601
- "speculative-decoding",
602
498
  "spend-tracking",
603
499
  "spending-limit",
604
- "step-1",
605
- "step-1v",
606
- "step-2",
607
- "stepfun",
608
- "stepfun-api",
609
500
  "streaming",
610
501
  "streaming-llm",
611
502
  "streamingllm",
612
- "stripe",
613
503
  "summarization",
614
504
  "task-aware-router",
615
- "task-classification",
616
505
  "task-memory",
617
506
  "task-routing",
618
- "telegram",
619
507
  "tencentcloud",
620
- "tensor-parallelism",
621
508
  "testing",
622
509
  "text-generation",
623
510
  "throughput-testing",
@@ -641,8 +528,6 @@
641
528
  "transformers",
642
529
  "translation",
643
530
  "tree-search",
644
- "treequest",
645
- "trello",
646
531
  "typescript",
647
532
  "ucb1",
648
533
  "uct",
@@ -654,9 +539,6 @@
654
539
  "vercel-ai-sdk",
655
540
  "vision-model",
656
541
  "volcengine",
657
- "websocket",
658
- "workflow-automation",
659
- "workflow-optimization",
660
542
  "wu-yuan",
661
543
  "wuyuan",
662
544
  "xai",
@@ -671,51 +553,22 @@
671
553
  "zai",
672
554
  "zai-glm",
673
555
  "zai-glm-4",
674
- "zendesk",
675
556
  "zero-ml",
676
557
  "zh-llm",
677
558
  "zhipu",
678
559
  "zhipu-ai",
679
560
  "zhipu-api",
680
- "中国ai",
681
- "中国llm",
682
- "中国大模型",
683
- "中文ai",
684
- "中文api",
685
- "中文chatgpt",
686
- "中文embedding",
687
- "中文langchain",
688
- "中文llamaindex",
689
- "中文llm",
690
- "中文nlp",
691
- "中文seo",
692
- "中文多模态",
693
- "中文大模型",
694
- "中文搜索引擎优化",
695
- "中文模型",
696
- "华为云",
697
- "向量化",
698
- "国产ai",
699
- "国产llm",
700
- "国产大模型",
701
- "多模型路由",
702
- "多模态",
703
- "大模型路由",
704
- "字节ai",
705
- "字节跳动",
706
- "智能路由",
707
- "智谱ai",
708
- "深度求索",
709
- "火山引擎",
710
- "百度ai",
711
- "百度云",
712
- "腾讯ai",
713
- "腾讯云",
714
- "长上下文",
715
- "阿里ai",
716
- "阿里qwen",
717
- "阿里云",
718
- "零一ai"
561
+ "99-accuracy",
562
+ "no-gpu-required",
563
+ "starts-in-100ms",
564
+ "3-failure-trigger",
565
+ "60-second-cooldown",
566
+ "12-signal-routing",
567
+ "domain-detection",
568
+ "learns-from-history",
569
+ "mcts-workflow",
570
+ "ucb1-selection",
571
+ "62-percent-cost-savings"
719
572
  ],
720
573
  "author": "Das-rebel <subho@example.com>",
721
574
  "license": "MIT",
@@ -1,134 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="780" height="520" viewBox="0 0 780 520">
2
- <defs>
3
- <linearGradient id="gpt4bar" x1="0" y1="0" x2="1" y2="0">
4
- <stop offset="0%" stop-color="#f85149"/>
5
- <stop offset="100%" stop-color="#da3633"/>
6
- </linearGradient>
7
- <linearGradient id="a3mbar" x1="0" y1="0" x2="1" y2="0">
8
- <stop offset="0%" stop-color="#3fb950"/>
9
- <stop offset="100%" stop-color="#238636"/>
10
- </linearGradient>
11
- <linearGradient id="header" x1="0" y1="0" x2="0" y2="1">
12
- <stop offset="0%" stop-color="#161b22"/>
13
- <stop offset="100%" stop-color="#0d1117"/>
14
- </linearGradient>
15
- </defs>
16
-
17
- <!-- Background -->
18
- <rect width="780" height="520" rx="12" fill="#0d1117" stroke="#30363d" stroke-width="1"/>
19
-
20
- <!-- Header -->
21
- <rect width="780" height="56" rx="12" fill="url(#header)"/>
22
- <rect y="44" width="780" height="12" fill="url(#header)"/>
23
- <text x="24" y="28" font-family="-apple-system,system-ui,sans-serif" font-size="18" fill="#c9d1d9" font-weight="700">💰 Cost Comparison</text>
24
- <text x="24" y="46" font-family="-apple-system,system-ui,sans-serif" font-size="12" fill="#8b949e">10,000 queries/month · Real provider pricing · Mixed query complexity</text>
25
-
26
- <!-- Legend -->
27
- <rect x="580" y="16" width="14" height="14" rx="3" fill="url(#gpt4bar)"/>
28
- <text x="600" y="27" font-family="-apple-system,system-ui,sans-serif" font-size="12" fill="#f85149">All → GPT-4o</text>
29
- <rect x="680" y="16" width="14" height="14" rx="3" fill="url(#a3mbar)"/>
30
- <text x="700" y="27" font-family="-apple-system,system-ui,sans-serif" font-size="12" fill="#3fb950">A3M Routed</text>
31
-
32
- <!-- Chart rows -->
33
- <g font-family="'SF Mono','Fira Code',monospace" font-size="12">
34
-
35
- <!-- Row 1: Simple Q&A -->
36
- <text x="24" y="82" fill="#8b949e">Simple Q&A</text>
37
- <text x="24" y="96" fill="#484f58" font-size="10">47% of traffic · "What is 2+2?"</text>
38
- <rect x="140" y="78" width="200" height="20" rx="4" fill="url(#gpt4bar)" opacity="0.9">
39
- <animate attributeName="width" from="0" to="200" dur="0.6s" fill="freeze"/>
40
- </rect>
41
- <text x="346" y="93" fill="#f85149" font-size="11">$4.94</text>
42
- <rect x="140" y="100" width="2" height="14" rx="2" fill="url(#a3mbar)">
43
- <animate attributeName="width" from="0" to="2" dur="0.4s" fill="freeze"/>
44
- </rect>
45
- <text x="148" y="112" fill="#3fb950" font-size="11">$0.00 → CommandCode (FREE)</text>
46
- <text x="720" y="96" fill="#3fb950" font-weight="bold" font-size="13">100% ✓</text>
47
-
48
- <!-- Row 2: Code generation -->
49
- <text x="24" y="148" fill="#8b949e">Code generation</text>
50
- <text x="24" y="162" fill="#484f58" font-size="10">15% of traffic · "Write Python sort"</text>
51
- <rect x="140" y="144" width="198" height="20" rx="4" fill="url(#gpt4bar)" opacity="0.9">
52
- <animate attributeName="width" from="0" to="198" dur="0.6s" begin="0.15s" fill="freeze"/>
53
- </rect>
54
- <text x="344" y="159" fill="#f85149" font-size="11">$4.88</text>
55
- <rect x="140" y="166" width="7" height="14" rx="2" fill="url(#a3mbar)">
56
- <animate attributeName="width" from="0" to="7" dur="0.4s" begin="0.15s" fill="freeze"/>
57
- </rect>
58
- <text x="153" y="178" fill="#3fb950" font-size="11">$0.17 → DeepSeek v3</text>
59
- <text x="720" y="162" fill="#3fb950" font-weight="bold" font-size="13">97% ✓</text>
60
-
61
- <!-- Row 3: Summarization -->
62
- <text x="24" y="214" fill="#8b949e">Summarization</text>
63
- <text x="24" y="228" fill="#484f58" font-size="10">18% of traffic · "Summarize this doc"</text>
64
- <rect x="140" y="210" width="292" height="20" rx="4" fill="url(#gpt4bar)" opacity="0.9">
65
- <animate attributeName="width" from="0" to="292" dur="0.6s" begin="0.3s" fill="freeze"/>
66
- </rect>
67
- <text x="438" y="225" fill="#f85149" font-size="11">$7.20</text>
68
- <rect x="140" y="232" width="17" height="14" rx="2" fill="url(#a3mbar)">
69
- <animate attributeName="width" from="0" to="17" dur="0.4s" begin="0.3s" fill="freeze"/>
70
- </rect>
71
- <text x="163" y="244" fill="#3fb950" font-size="11">$0.43 → GPT-4o-mini</text>
72
- <text x="720" y="228" fill="#3fb950" font-weight="bold" font-size="13">94% ✓</text>
73
-
74
- <!-- Row 4: Complex reasoning -->
75
- <text x="24" y="280" fill="#8b949e">Complex reasoning</text>
76
- <text x="24" y="294" fill="#484f58" font-size="10">12% of traffic · "Analyze economics of..."</text>
77
- <rect x="140" y="276" width="352" height="20" rx="4" fill="url(#gpt4bar)" opacity="0.9">
78
- <animate attributeName="width" from="0" to="352" dur="0.6s" begin="0.45s" fill="freeze"/>
79
- </rect>
80
- <text x="498" y="291" fill="#f85149" font-size="11">$8.70</text>
81
- <rect x="140" y="298" width="136" height="14" rx="2" fill="url(#a3mbar)">
82
- <animate attributeName="width" from="0" to="136" dur="0.4s" begin="0.45s" fill="freeze"/>
83
- </rect>
84
- <text x="282" y="310" fill="#3fb950" font-size="11">$3.36 → Claude Haiku</text>
85
- <text x="720" y="294" fill="#ffa657" font-weight="bold" font-size="13">61% ✓</text>
86
-
87
- <!-- Row 5: Expert analysis -->
88
- <text x="24" y="346" fill="#8b949e">Expert analysis</text>
89
- <text x="24" y="360" fill="#484f58" font-size="10">8% of traffic · "Legal contract review"</text>
90
- <rect x="140" y="342" width="340" height="20" rx="4" fill="url(#gpt4bar)" opacity="0.9">
91
- <animate attributeName="width" from="0" to="340" dur="0.6s" begin="0.6s" fill="freeze"/>
92
- </rect>
93
- <text x="486" y="357" fill="#f85149" font-size="11">$8.40</text>
94
- <rect x="140" y="364" width="340" height="14" rx="2" fill="url(#a3mbar)" opacity="0.5">
95
- <animate attributeName="width" from="0" to="340" dur="0.4s" begin="0.6s" fill="freeze"/>
96
- </rect>
97
- <text x="486" y="376" fill="#8b949e" font-size="11">$8.40 → GPT-4o (no shortcut)</text>
98
- <text x="720" y="360" fill="#8b949e" font-weight="bold" font-size="13">0%</text>
99
- </g>
100
-
101
- <!-- Divider -->
102
- <line x1="24" y1="396" x2="756" y2="396" stroke="#30363d" stroke-width="1"/>
103
-
104
- <!-- Total -->
105
- <g font-family="-apple-system,system-ui,sans-serif">
106
- <text x="24" y="418" fill="#c9d1d9" font-size="16" font-weight="700">Total: 10,000 queries</text>
107
- <text x="380" y="418" fill="#f85149" font-size="16" font-weight="700">$34.11/mo</text>
108
- <text x="470" y="418" fill="#484f58" font-size="16">→</text>
109
- <text x="498" y="418" fill="#3fb950" font-size="16" font-weight="700">$12.36/mo</text>
110
- <text x="600" y="418" fill="#3fb950" font-size="20" font-weight="800">Save 64%</text>
111
- </g>
112
-
113
- <!-- Scale projections -->
114
- <g font-family="'SF Mono','Fira Code',monospace" font-size="11">
115
- <text x="24" y="448" fill="#8b949e">At scale:</text>
116
- <text x="24" y="468" fill="#484f58"> 100K queries/mo</text>
117
- <text x="200" y="468" fill="#f85149">$341</text>
118
- <text x="240" y="468" fill="#484f58">→</text>
119
- <text x="260" y="468" fill="#3fb950">$124</text>
120
- <text x="310" y="468" fill="#3fb950">save $218/mo</text>
121
-
122
- <text x="420" y="468" fill="#484f58"> 1M queries/mo</text>
123
- <text x="580" y="468" fill="#f85149">$3,411</text>
124
- <text x="630" y="468" fill="#484f58">→</text>
125
- <text x="650" y="468" fill="#3fb950">$1,236</text>
126
- <text x="700" y="468" fill="#3fb950">save $2,175/mo</text>
127
- </g>
128
-
129
- <!-- Bottom note -->
130
- <rect x="16" y="488" width="748" height="24" rx="4" fill="#161b22"/>
131
- <text x="390" y="504" text-anchor="middle" font-family="-apple-system,system-ui,sans-serif" font-size="11" fill="#8b949e">
132
- Based on real provider pricing from providerConfig.ts · RouteLLM query distribution (47% simple) · Savings vary by usage
133
- </text>
134
- </svg>