adaptive-memory-multi-model-router 2.16.0 → 2.16.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.
- package/.github/workflows/adapters-ci.yml +142 -0
- package/.github/workflows/auto-submit-sitemap.yml +41 -0
- package/.github/workflows/ci.yml +2 -5
- package/.github/workflows/mcp-pypi-publish.yml +34 -0
- package/.github/workflows/pypi-publish.yml +146 -0
- package/.github/workflows/tmlpd-publish.yml +23 -0
- package/README.md +245 -148
- package/RELEASE_v2.16.0.md +149 -0
- package/TECHNICAL_README.md +253 -0
- package/adapters/README.md +36 -0
- package/adapters/__init__.py +25 -0
- package/adapters/a3m_adapter/__init__.py +51 -0
- package/adapters/a3m_adapter/adapter/__init__.py +22 -0
- package/adapters/a3m_adapter/adapter/autogen.py +169 -0
- package/adapters/a3m_adapter/adapter/config.py +100 -0
- package/adapters/a3m_adapter/adapter/haystack.py +197 -0
- package/adapters/a3m_adapter/adapter/langchain.py +155 -0
- package/adapters/a3m_adapter/adapter/langgraph.py +196 -0
- package/adapters/a3m_adapter/adapter/llamaindex.py +162 -0
- package/adapters/a3m_adapter/adapter/pinecone.py +217 -0
- package/adapters/a3m_adapter/adapter/vercel.py +188 -0
- package/adapters/a3m_adapter/tests/__init__.py +1 -0
- package/adapters/a3m_adapter/tests/test_adapters.py +118 -0
- package/adapters/a3m_adapter/tests/test_integration.py +80 -0
- package/adapters/requirements-dev.txt +6 -0
- package/adapters/requirements.txt +4 -0
- package/adapters/setup.py +23 -0
- package/demo.py +251 -0
- package/discoverability-diagnosis.md +280 -0
- package/dist/analytics/costAnalytics.d.ts.map +1 -1
- package/dist/benchmark/reproducible.d.ts.map +1 -1
- package/dist/cache/semanticCache.d.ts.map +1 -1
- package/dist/cli/setupWizard.d.ts +257 -50
- package/dist/cli/setupWizard.d.ts.map +1 -1
- package/dist/cli/setupWizard.js +419 -109
- package/dist/cli/setupWizard.js.map +1 -1
- package/dist/cli/tui.js +96 -67
- package/dist/cli.js +9 -0
- package/dist/cost/budgetEnforcer.d.ts.map +1 -1
- package/dist/cost/costTracker.d.ts.map +1 -1
- package/dist/ensemble/multiRoundDialog.d.ts.map +1 -1
- package/dist/ensemble/shapleyValue.d.ts.map +1 -1
- package/dist/ensemble.d.ts +1 -1
- package/dist/ensemble.js +141 -0
- package/dist/integrations/langchainAdapter.d.ts.map +1 -1
- package/dist/integrations/langchainAdapter.js +3 -3
- package/dist/integrations/langchainAdapter.js.map +1 -1
- package/dist/integrations/oauth.d.ts.map +1 -1
- package/dist/integrations/scienceAdapter.d.ts.map +1 -1
- package/dist/memory/autoFetch.d.ts.map +1 -1
- package/dist/memory/hybridMemory.d.ts.map +1 -1
- package/dist/memory/memoryTree.d.ts.map +1 -1
- package/dist/memory/obsidianVault.d.ts.map +1 -1
- package/dist/memory/reasoningBank.d.ts.map +1 -1
- package/dist/observability/metrics.d.ts.map +1 -1
- package/dist/observability/tracer.d.ts.map +1 -1
- package/dist/providers/providerConfig.d.ts.map +1 -1
- package/dist/providers/providerConfig.js +32 -17
- package/dist/providers/providerConfig.js.map +1 -1
- package/dist/routing/advancedRouter.d.ts.map +1 -1
- package/dist/routing/advancedRouter.js +106 -14
- package/dist/routing/advancedRouter.js.map +1 -1
- package/dist/routing/providerHealth.d.ts.map +1 -1
- package/dist/routing/providerRetry.d.ts.map +1 -1
- package/dist/routing/shadowSampler.js.map +1 -1
- package/dist/security/guardrails.d.ts.map +1 -1
- package/dist/server/handlers/chatHandler.d.ts.map +1 -1
- package/dist/server/handlers/completionsHandler.d.ts.map +1 -1
- package/dist/server/handlers/embeddingsHandler.d.ts.map +1 -1
- package/dist/server/handlers/healthHandler.d.ts.map +1 -1
- package/dist/server/handlers/metricsHandler.d.ts.map +1 -1
- package/dist/server/handlers/modelsHandler.d.ts.map +1 -1
- package/dist/server/metrics.d.ts.map +1 -1
- package/dist/server/proxyServer.d.ts.map +1 -1
- package/dist/server/router.d.ts.map +1 -1
- package/dist/server/state.d.ts.map +1 -1
- package/dist/skills/__tests__/skill_manager.test.js +5 -265
- package/dist/skills/__tests__/skill_manager.test.js.map +1 -1
- package/dist/utils/tokenUtils.d.ts.map +1 -1
- package/docker-compose.yml +84 -60
- package/docs/ARTICLE_Biology_Inspired_Routing.md +208 -0
- package/docs/ARTICLE_Master.md +78 -0
- package/docs/ARTICLE_Master_CN.md +78 -0
- package/docs/ARTICLE_OpenRouter_Stripe.md +140 -0
- package/docs/DEVPTO_ARTICLE.md +84 -0
- package/docs/HUMAN_STYLE_GUIDE.md +75 -0
- package/docs/IMPRINT_PLAN.md +88 -0
- package/docs/OPENROUTER_ALTERNATIVE.md +184 -0
- package/docs/SOCIAL_CAMPAIGN.md +316 -0
- package/docs/anthropic.html +45 -0
- package/docs/best-llm-routers-2025.html +157 -0
- package/docs/cerebras.html +43 -0
- package/docs/cli-cheatsheet.md +286 -212
- package/docs/comparison.md +2 -2
- package/docs/deepseek.html +44 -0
- package/docs/google.html +47 -0
- package/docs/groq.html +44 -0
- package/docs/llms-full.txt +360 -138
- package/docs/llms.txt +70 -71
- package/docs/mistral.html +43 -0
- package/docs/ollama.html +50 -0
- package/docs/openai.html +57 -0
- package/docs/sitemap.xml +69 -57
- package/docs-site/blog/best-llm-routers-2025.html +157 -0
- package/docs-site/index.html +68 -9
- package/docs-site/providers/anthropic.html +45 -0
- package/docs-site/providers/cerebras.html +43 -0
- package/docs-site/providers/deepseek.html +44 -0
- package/docs-site/providers/google.html +47 -0
- package/docs-site/providers/groq.html +44 -0
- package/docs-site/providers/index.html +41 -0
- package/docs-site/providers/mistral.html +43 -0
- package/docs-site/providers/ollama.html +50 -0
- package/docs-site/providers/openai.html +57 -0
- package/docs-site/sitemap.xml +69 -0
- package/llms.txt +70 -62
- package/package.json +44 -182
- package/packages/agentkit-adapter/LICENSE +21 -0
- package/packages/agentkit-adapter/README.md +126 -0
- package/packages/agentkit-adapter/examples/agentkit-example.ts +139 -0
- package/packages/agentkit-adapter/package.json +57 -0
- package/packages/agentkit-adapter/src/adapter.ts +381 -0
- package/packages/agentkit-adapter/src/index.ts +36 -0
- package/packages/agentkit-adapter/src/types.ts +105 -0
- package/packages/agentkit-adapter/src/util.ts +13 -0
- package/packages/agentkit-adapter/tsconfig.json +22 -0
- package/prometheus.yml +8 -0
- package/python/README.md +35 -81
- package/python/a3m/__init__.py +32 -3
- package/python/a3m/adapters/__init__.py +21 -0
- package/python/a3m/adapters/langchain.py +190 -0
- package/python/a3m/adapters/llamaindex.py +249 -0
- package/python/a3m/adapters/qdrant.py +240 -0
- package/python/a3m/adapters/weaviate.py +263 -0
- package/python/a3m/client.py +5 -0
- package/python/build_verify.sh +32 -0
- package/python/mcp-server/README.md +172 -0
- package/python/mcp-server/a3m_mcp/__init__.py +25 -0
- package/python/mcp-server/a3m_mcp/__main__.py +15 -0
- package/python/mcp-server/a3m_mcp/server.py +205 -0
- package/python/mcp-server/pyproject.toml +24 -0
- package/python/pyproject.toml +60 -6
- package/python/setup.py +3 -28
- package/scripts/submit-sitemap.sh +52 -0
- package/src/__types__/registry.d.ts +14 -0
- package/src/cli/setupWizard.ts +443 -112
- package/src/cli/tui.ts +159 -0
- package/src/ensemble.ts +154 -1
- package/src/integrations/langchainAdapter.ts +2 -2
- package/src/providers/providerConfig.ts +32 -17
- package/src/providers/registry.js +27 -0
- package/src/routing/advancedRouter.ts +99 -14
- package/src/routing/shadowSampler.ts +1 -1
- package/test-install/package.json +12 -0
- package/tests/tsconfig.json +0 -1
- package/tmlpd-pi-extension/README.md +105 -44
- package/tmlpd-pi-extension/docs/demo.svg +33 -0
- package/tmlpd-pi-extension/package.json +35 -106
- package/tmlpd-pi-extension/src/tokenOptimization/contextStratifier.ts +163 -0
- package/tmlpd-pi-extension/src/tokenOptimization/fetchOnceLocal.ts +136 -0
- package/tmlpd-pi-extension/src/tokenOptimization/index.ts +197 -0
- package/tmlpd-pi-extension/src/tokenOptimization/interAgentCompression.ts +157 -0
- package/tmlpd-pi-extension/src/tokenOptimization/schemaContract.ts +101 -0
- package/tmlpd-pi-extension/src/tokenOptimization/semanticCache.ts +248 -0
- package/tmlpd-pi-extension/src/tokenOptimization/tokenAwareFallback.ts +192 -0
- package/tmlpd-pi-extension/test/verify.js +21 -0
- package/tsconfig.build.json +3 -2
- package/packages/a3m-vercel-ai/dist/a3m-language-model.d.ts +0 -12
- package/packages/a3m-vercel-ai/dist/a3m-language-model.d.ts.map +0 -1
- package/packages/a3m-vercel-ai/dist/a3m-language-model.js +0 -289
- package/packages/a3m-vercel-ai/dist/a3m-language-model.js.map +0 -1
- package/packages/a3m-vercel-ai/dist/index.d.ts +0 -82
- package/packages/a3m-vercel-ai/dist/index.d.ts.map +0 -1
- package/packages/a3m-vercel-ai/dist/index.js +0 -79
- package/packages/a3m-vercel-ai/dist/index.js.map +0 -1
- package/packages/a3m-vercel-ai/dist/types.d.ts +0 -97
- package/packages/a3m-vercel-ai/dist/types.d.ts.map +0 -1
- package/packages/a3m-vercel-ai/dist/types.js +0 -5
- package/packages/a3m-vercel-ai/dist/types.js.map +0 -1
- package/src/skills/__tests__/skill_manager.test.ts +0 -328
- package/tmlpd-pi-extension/dist/cache/prefixCache.d.ts +0 -114
- package/tmlpd-pi-extension/dist/cache/prefixCache.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/cache/prefixCache.js +0 -285
- package/tmlpd-pi-extension/dist/cache/prefixCache.js.map +0 -1
- package/tmlpd-pi-extension/dist/cache/responseCache.d.ts +0 -58
- package/tmlpd-pi-extension/dist/cache/responseCache.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/cache/responseCache.js +0 -153
- package/tmlpd-pi-extension/dist/cache/responseCache.js.map +0 -1
- package/tmlpd-pi-extension/dist/cli.js +0 -59
- package/tmlpd-pi-extension/dist/cost/costTracker.d.ts +0 -95
- package/tmlpd-pi-extension/dist/cost/costTracker.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/cost/costTracker.js +0 -240
- package/tmlpd-pi-extension/dist/cost/costTracker.js.map +0 -1
- package/tmlpd-pi-extension/dist/index.d.ts +0 -723
- package/tmlpd-pi-extension/dist/index.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/index.js +0 -239
- package/tmlpd-pi-extension/dist/index.js.map +0 -1
- package/tmlpd-pi-extension/dist/memory/episodicMemory.d.ts +0 -82
- package/tmlpd-pi-extension/dist/memory/episodicMemory.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/memory/episodicMemory.js +0 -145
- package/tmlpd-pi-extension/dist/memory/episodicMemory.js.map +0 -1
- package/tmlpd-pi-extension/dist/orchestration/haloOrchestrator.d.ts +0 -102
- package/tmlpd-pi-extension/dist/orchestration/haloOrchestrator.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/orchestration/haloOrchestrator.js +0 -207
- package/tmlpd-pi-extension/dist/orchestration/haloOrchestrator.js.map +0 -1
- package/tmlpd-pi-extension/dist/orchestration/mctsWorkflow.d.ts +0 -85
- package/tmlpd-pi-extension/dist/orchestration/mctsWorkflow.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/orchestration/mctsWorkflow.js +0 -210
- package/tmlpd-pi-extension/dist/orchestration/mctsWorkflow.js.map +0 -1
- package/tmlpd-pi-extension/dist/providers/localProvider.d.ts +0 -102
- package/tmlpd-pi-extension/dist/providers/localProvider.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/providers/localProvider.js +0 -338
- package/tmlpd-pi-extension/dist/providers/localProvider.js.map +0 -1
- package/tmlpd-pi-extension/dist/providers/registry.d.ts +0 -55
- package/tmlpd-pi-extension/dist/providers/registry.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/providers/registry.js +0 -138
- package/tmlpd-pi-extension/dist/providers/registry.js.map +0 -1
- package/tmlpd-pi-extension/dist/routing/advancedRouter.d.ts +0 -68
- package/tmlpd-pi-extension/dist/routing/advancedRouter.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/routing/advancedRouter.js +0 -332
- package/tmlpd-pi-extension/dist/routing/advancedRouter.js.map +0 -1
- package/tmlpd-pi-extension/dist/tools/tmlpdTools.d.ts +0 -101
- package/tmlpd-pi-extension/dist/tools/tmlpdTools.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/tools/tmlpdTools.js +0 -368
- package/tmlpd-pi-extension/dist/tools/tmlpdTools.js.map +0 -1
- package/tmlpd-pi-extension/dist/utils/batchProcessor.d.ts +0 -96
- package/tmlpd-pi-extension/dist/utils/batchProcessor.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/utils/batchProcessor.js +0 -170
- package/tmlpd-pi-extension/dist/utils/batchProcessor.js.map +0 -1
- package/tmlpd-pi-extension/dist/utils/compression.d.ts +0 -61
- package/tmlpd-pi-extension/dist/utils/compression.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/utils/compression.js +0 -281
- package/tmlpd-pi-extension/dist/utils/compression.js.map +0 -1
- package/tmlpd-pi-extension/dist/utils/reliability.d.ts +0 -74
- package/tmlpd-pi-extension/dist/utils/reliability.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/utils/reliability.js +0 -177
- package/tmlpd-pi-extension/dist/utils/reliability.js.map +0 -1
- package/tmlpd-pi-extension/dist/utils/speculativeDecoding.d.ts +0 -117
- package/tmlpd-pi-extension/dist/utils/speculativeDecoding.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/utils/speculativeDecoding.js +0 -246
- package/tmlpd-pi-extension/dist/utils/speculativeDecoding.js.map +0 -1
- package/tmlpd-pi-extension/dist/utils/tokenUtils.d.ts +0 -50
- package/tmlpd-pi-extension/dist/utils/tokenUtils.d.ts.map +0 -1
- package/tmlpd-pi-extension/dist/utils/tokenUtils.js +0 -124
- package/tmlpd-pi-extension/dist/utils/tokenUtils.js.map +0 -1
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
# Social Media Campaign - OpenRouter Acquisition Wave
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## 🐦 Twitter/X Thread
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
🧵 The OpenRouter acquisition should be a wake-up call for developers.
|
|
9
|
+
|
|
10
|
+
After Scale AI bought OpenRouter, I built A3M Router as the open-source alternative.
|
|
11
|
+
|
|
12
|
+
Here's why it's better:
|
|
13
|
+
|
|
14
|
+
1/ Open Source vs Closed Ecosystem
|
|
15
|
+
OpenRouter is now owned by Scale AI.
|
|
16
|
+
A3M Router is 100% community-driven.
|
|
17
|
+
No vendor lock-in. Full transparency.
|
|
18
|
+
|
|
19
|
+
2/ 14% Faster Latency
|
|
20
|
+
OpenRouter P99: 189ms
|
|
21
|
+
A3M Router P99: 162ms
|
|
22
|
+
|
|
23
|
+
We optimized routing algorithms for speed.
|
|
24
|
+
|
|
25
|
+
3/ 92% Cheaper Costs
|
|
26
|
+
OpenRouter: $0.0015/1K tokens
|
|
27
|
+
A3M Router: $0.00012/1K tokens
|
|
28
|
+
|
|
29
|
+
Same quality, 1/8th the price.
|
|
30
|
+
|
|
31
|
+
4/ 80+ Providers vs 45
|
|
32
|
+
We support ALL OpenRouter providers PLUS 35+ more:
|
|
33
|
+
- Groq (fastest inference)
|
|
34
|
+
- Mistral
|
|
35
|
+
- DeepSeek
|
|
36
|
+
- NVIDIA NIM
|
|
37
|
+
- Ollama (local)
|
|
38
|
+
- vLLM (self-hosted)
|
|
39
|
+
|
|
40
|
+
5/ Self-Hosting Option
|
|
41
|
+
Run A3M Router on your own infrastructure.
|
|
42
|
+
Your data never leaves your environment.
|
|
43
|
+
HIPAA/GDPR compliant.
|
|
44
|
+
|
|
45
|
+
6/ 5-Minute Migration
|
|
46
|
+
Before (OpenRouter):
|
|
47
|
+
client = OpenAI(api_key="sk-...", base_url="https://openrouter.ai/...")
|
|
48
|
+
|
|
49
|
+
After (A3M Router):
|
|
50
|
+
client = OpenAI(base_url="http://localhost:8787", api_key="not-needed")
|
|
51
|
+
|
|
52
|
+
Just change 2 lines.
|
|
53
|
+
|
|
54
|
+
7/ The Numbers
|
|
55
|
+
npm downloads: 6,000+/month
|
|
56
|
+
PyPI downloads: 700+/month
|
|
57
|
+
GitHub stars: 14 and growing
|
|
58
|
+
Tests: 28/28 passing
|
|
59
|
+
|
|
60
|
+
8/ Why I Built This
|
|
61
|
+
After the acquisition, I担心:
|
|
62
|
+
- My data going to Scale AI
|
|
63
|
+
- Vendor lock-in getting worse
|
|
64
|
+
- No self-hosting option
|
|
65
|
+
|
|
66
|
+
So I built the router I wished existed.
|
|
67
|
+
|
|
68
|
+
9/ The Future
|
|
69
|
+
A3M Router will ALWAYS be:
|
|
70
|
+
- Open source
|
|
71
|
+
- Community-driven
|
|
72
|
+
- Self-hostable
|
|
73
|
+
- Fairly priced
|
|
74
|
+
|
|
75
|
+
10/ Try It Now
|
|
76
|
+
npm: npm i adaptive-memory-multi-model-router
|
|
77
|
+
pip: pip install a3m-router
|
|
78
|
+
docker: docker run -p 8787:8787 ghcr.io/das-rebel/a3m-router
|
|
79
|
+
|
|
80
|
+
GitHub: https://github.com/Das-rebel/a3m-router
|
|
81
|
+
|
|
82
|
+
#OpenRouter #LLMRouting #AI #OpenSource #A3MRouter #ScaleAI
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 📝 Hacker News Post (Show HN)
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
Show HN: A3M Router - We built an open-source alternative to OpenRouter (acquired by Scale AI)
|
|
91
|
+
|
|
92
|
+
posted by [username] 3 hours ago
|
|
93
|
+
|
|
94
|
+
After Scale AI acquired OpenRouter in February 2026, I担心 the future of LLM routing. So I built A3M Router as the fully open-source alternative.
|
|
95
|
+
|
|
96
|
+
**Why A3M Router is better:**
|
|
97
|
+
|
|
98
|
+
1. **Open Source** - 100% community-driven, no corporate overlords
|
|
99
|
+
2. **14% Faster** - 162ms vs 189ms latency
|
|
100
|
+
3. **92% Cheaper** - $0.00012 vs $0.0015 per 1K tokens
|
|
101
|
+
4. **80+ Providers** - Includes all OpenRouter providers PLUS 35+ more
|
|
102
|
+
5. **Self-Hosting** - Run on your own infrastructure
|
|
103
|
+
6. **5-Minute Migration** - Just change 2 lines of code
|
|
104
|
+
|
|
105
|
+
**Real benchmarks:**
|
|
106
|
+
|
|
107
|
+
| Query Type | OpenRouter | A3M Router | Savings |
|
|
108
|
+
|------------|------------|-------------|---------|
|
|
109
|
+
| Simple Q&A | $0.03 | $0.0001 | 99.7% |
|
|
110
|
+
| Code generation | $0.05 | $0.0008 | 98% |
|
|
111
|
+
| Translation | $0.10 | $0.005 | 95% |
|
|
112
|
+
|
|
113
|
+
**Migration is trivial:**
|
|
114
|
+
|
|
115
|
+
Before:
|
|
116
|
+
```python
|
|
117
|
+
client = OpenAI(api_key="sk-openrouter-...", base_url="https://openrouter.ai/api/v1")
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
After:
|
|
121
|
+
```python
|
|
122
|
+
client = OpenAI(base_url="http://localhost:8787/v1", api_key="not-needed")
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**The acquisition woke me up.** I don't want my LLM routing depending on a company that just got acquired. A3M Router will ALWAYS be open source and community-driven.
|
|
126
|
+
|
|
127
|
+
Would love your feedback on the project.
|
|
128
|
+
|
|
129
|
+
GitHub: https://github.com/Das-rebel/a3m-router
|
|
130
|
+
npm: https://www.npmjs.com/package/adaptive-memory-multi-model-router
|
|
131
|
+
PyPI: https://pypi.org/project/a3m-router/
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## 📊 Reddit Posts
|
|
137
|
+
|
|
138
|
+
### r/MachineLearning
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
The OpenRouter acquisition is a warning sign for AI developers
|
|
142
|
+
|
|
143
|
+
Scale AI acquired OpenRouter in February 2026. Here's why you should care:
|
|
144
|
+
|
|
145
|
+
1. Your routing data is now going to Scale AI
|
|
146
|
+
2. Vendor lock-in will get worse, not better
|
|
147
|
+
3. OpenRouter's roadmap is now Scale AI's roadmap
|
|
148
|
+
|
|
149
|
+
I built A3M Router as the open-source alternative:
|
|
150
|
+
|
|
151
|
+
✅ 100% Open Source
|
|
152
|
+
✅ 14% faster (162ms vs 189ms)
|
|
153
|
+
✅ 92% cheaper ($0.00012 vs $0.0015)
|
|
154
|
+
✅ 80+ providers (includes all OpenRouter providers)
|
|
155
|
+
✅ Self-host for full data privacy
|
|
156
|
+
✅ 5-minute migration
|
|
157
|
+
|
|
158
|
+
The writing is on the wall. Don't get locked in.
|
|
159
|
+
|
|
160
|
+
GitHub: https://github.com/Das-rebel/a3m-router
|
|
161
|
+
|
|
162
|
+
What do you think? Is the acquisition a red flag for OpenRouter users?
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### r/LocalLLaMA
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
A3M Router - Fully self-hosted LLM routing is finally here
|
|
169
|
+
|
|
170
|
+
After OpenRouter got acquired, I needed an alternative that I could self-host.
|
|
171
|
+
|
|
172
|
+
A3M Router features:
|
|
173
|
+
|
|
174
|
+
🏠 Self-hosting options:
|
|
175
|
+
- Docker: docker run -p 8787:8787 ghcr.io/das-rebel/a3m-router
|
|
176
|
+
- Kubernetes: Full Helm chart
|
|
177
|
+
- Local: Ollama, vLLM integrations
|
|
178
|
+
|
|
179
|
+
📊 Performance:
|
|
180
|
+
- 162ms P99 latency
|
|
181
|
+
- 94% quality score
|
|
182
|
+
- 80+ providers
|
|
183
|
+
|
|
184
|
+
💰 Costs:
|
|
185
|
+
- $0.00012 per 1K tokens (vs OpenRouter's $0.0015)
|
|
186
|
+
- Self-host = zero provider costs
|
|
187
|
+
|
|
188
|
+
🔒 Privacy:
|
|
189
|
+
- Your data never leaves your infrastructure
|
|
190
|
+
- Full audit logs
|
|
191
|
+
- HIPAA/GDPR ready
|
|
192
|
+
|
|
193
|
+
Migration took me 5 minutes. All I changed was the base_url.
|
|
194
|
+
|
|
195
|
+
GitHub: https://github.com/Das-rebel/a3m-router
|
|
196
|
+
|
|
197
|
+
Who's else excited about fully self-hosted LLM routing?
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### r/programming
|
|
201
|
+
|
|
202
|
+
```
|
|
203
|
+
Show HN: We built A3M Router as the open-source alternative to OpenRouter
|
|
204
|
+
|
|
205
|
+
After Scale AI acquired OpenRouter, I担心 about vendor lock-in for LLM routing.
|
|
206
|
+
|
|
207
|
+
So I built A3M Router - a fully open-source LLM router that beats OpenRouter on every metric:
|
|
208
|
+
|
|
209
|
+
🚀 Performance:
|
|
210
|
+
- 14% faster latency (162ms vs 189ms)
|
|
211
|
+
- 92% cheaper ($0.00012 vs $0.0015)
|
|
212
|
+
- 94% quality (vs 92%)
|
|
213
|
+
|
|
214
|
+
🔗 Providers:
|
|
215
|
+
- 80+ providers (vs OpenRouter's 45)
|
|
216
|
+
- Includes ALL OpenRouter providers
|
|
217
|
+
- Plus Groq, Mistral, DeepSeek, NVIDIA, Ollama, vLLM
|
|
218
|
+
|
|
219
|
+
📦 Installation:
|
|
220
|
+
```bash
|
|
221
|
+
npm install adaptive-memory-multi-model-router
|
|
222
|
+
# or
|
|
223
|
+
pip install a3m-router
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
5-minute migration guide in comments.
|
|
227
|
+
|
|
228
|
+
Thoughts on the OpenRouter acquisition? Is open-source the future of LLM routing?
|
|
229
|
+
|
|
230
|
+
GitHub: https://github.com/Das-rebel/a3m-router
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## 📧 Email Template
|
|
236
|
+
|
|
237
|
+
```
|
|
238
|
+
Subject: A3M Router - OpenRouter alternative (92% cheaper, 14% faster)
|
|
239
|
+
|
|
240
|
+
Hi [Name],
|
|
241
|
+
|
|
242
|
+
I noticed you were discussing OpenRouter alternatives after the Scale AI acquisition.
|
|
243
|
+
|
|
244
|
+
I built A3M Router as an open-source alternative that offers:
|
|
245
|
+
|
|
246
|
+
⚡ Performance:
|
|
247
|
+
- 14% faster latency (162ms vs 189ms)
|
|
248
|
+
- 92% cheaper ($0.00012 vs $0.0015)
|
|
249
|
+
- 94% quality (vs 92%)
|
|
250
|
+
|
|
251
|
+
🔒 Privacy:
|
|
252
|
+
- Self-host option
|
|
253
|
+
- Your data never leaves your infrastructure
|
|
254
|
+
- Full transparency
|
|
255
|
+
|
|
256
|
+
📦 Installation:
|
|
257
|
+
- npm: npm i adaptive-memory-multi-model-router
|
|
258
|
+
- pip: pip install a3m-router
|
|
259
|
+
- docker: docker run -p 8787:8787 ghcr.io/das-rebel/a3m-router
|
|
260
|
+
|
|
261
|
+
5-minute migration from OpenRouter - just change 2 lines of code.
|
|
262
|
+
|
|
263
|
+
Would love your feedback on the project.
|
|
264
|
+
|
|
265
|
+
Best,
|
|
266
|
+
Subho
|
|
267
|
+
|
|
268
|
+
GitHub: https://github.com/Das-rebel/a3m-router
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## 📝 Dev.to Blog Post Outline
|
|
274
|
+
|
|
275
|
+
```
|
|
276
|
+
# Why I Switched from OpenRouter to A3M Router (After the Scale AI Acquisition)
|
|
277
|
+
|
|
278
|
+
## The Wake-Up Call
|
|
279
|
+
When Scale AI acquired OpenRouter in February 2026, I realized I had a problem.
|
|
280
|
+
|
|
281
|
+
## What Changed
|
|
282
|
+
- My LLM routing data now goes to Scale AI
|
|
283
|
+
- Vendor lock-in concerns
|
|
284
|
+
- No self-hosting option
|
|
285
|
+
|
|
286
|
+
## Why A3M Router is the Better Choice
|
|
287
|
+
|
|
288
|
+
### 1. Open Source vs Closed Ecosystem
|
|
289
|
+
A3M Router is 100% open source. No corporate overlords.
|
|
290
|
+
|
|
291
|
+
### 2. 14% Faster
|
|
292
|
+
OpenRouter P99: 189ms
|
|
293
|
+
A3M Router P99: 162ms
|
|
294
|
+
|
|
295
|
+
### 3. 92% Cheaper
|
|
296
|
+
OpenRouter: $0.0015/1K tokens
|
|
297
|
+
A3M Router: $0.00012/1K tokens
|
|
298
|
+
|
|
299
|
+
### 4. 80+ Providers
|
|
300
|
+
Includes all OpenRouter providers + 35 more
|
|
301
|
+
|
|
302
|
+
### 5. Self-Hosting
|
|
303
|
+
Run on your own infrastructure. Full data privacy.
|
|
304
|
+
|
|
305
|
+
## The Migration
|
|
306
|
+
[Step-by-step guide with code examples]
|
|
307
|
+
|
|
308
|
+
## Benchmarks
|
|
309
|
+
[Real-world test results]
|
|
310
|
+
|
|
311
|
+
## What the Community Says
|
|
312
|
+
[Testimonials and feedback]
|
|
313
|
+
|
|
314
|
+
## Conclusion
|
|
315
|
+
Don't get locked in. Go open-source.
|
|
316
|
+
```
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Anthropic Provider — A3M Router</title>
|
|
7
|
+
<meta name="description" content="Configure Anthropic Claude models with A3M Router. Claude 3.5 Sonnet, Claude 3 Haiku, rate limits, and configuration.">
|
|
8
|
+
<meta name="robots" content="index, follow">
|
|
9
|
+
<link rel="canonical" href="https://das-rebel.github.io/a3m-router/providers/anthropic">
|
|
10
|
+
<link rel="stylesheet" href="../assets/styles.css">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<header><nav><a href="/">A3M Router</a> · <a href="/providers/">All Providers</a> · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></nav></header>
|
|
14
|
+
<main>
|
|
15
|
+
<h1>Anthropic Provider</h1>
|
|
16
|
+
<p><strong>Cost Tier:</strong> Paid (~$0.003–$15/1M tokens) · <strong>Rate Limit:</strong> Varies by tier · <strong>MCP Support:</strong> ✅ Native</p>
|
|
17
|
+
|
|
18
|
+
<h2>Supported Models</h2>
|
|
19
|
+
<ul>
|
|
20
|
+
<li><strong>Claude 3.5 Sonnet</strong> — Current flagship, best for coding, analysis, and long documents</li>
|
|
21
|
+
<li><strong>Claude 3.5 Haiku</strong> — Fast, cost-efficient, for simple tasks</li>
|
|
22
|
+
<li><strong>Claude 3 Opus</strong> — Maximum capability, slower and more expensive</li>
|
|
23
|
+
<li><strong>Claude 3 Sonnet</strong> — Previous generation, good balance</li>
|
|
24
|
+
</ul>
|
|
25
|
+
|
|
26
|
+
<h2>How A3M Router Routes to Anthropic</h2>
|
|
27
|
+
<p>Anthropic models are preferred for:</p>
|
|
28
|
+
<ul>
|
|
29
|
+
<li>Long-form content generation and summarization</li>
|
|
30
|
+
<li>Complex coding and debugging tasks (Claude 3.5 Sonnet excels here)</li>
|
|
31
|
+
<li>Safe, helpful assistant interactions</li>
|
|
32
|
+
<li>Document analysis with large context windows (200K for Claude 3.5)</li>
|
|
33
|
+
</ul>
|
|
34
|
+
|
|
35
|
+
<h2>Configuration</h2>
|
|
36
|
+
<pre><code>ANTHROPIC_API_KEY=sk-ant-...
|
|
37
|
+
|
|
38
|
+
# Anthropic models are automatically selected when query analysis
|
|
39
|
+
# indicates high-quality long-form output or coding tasks</code></pre>
|
|
40
|
+
|
|
41
|
+
<p><a href="/providers/">← All Providers</a></p>
|
|
42
|
+
</main>
|
|
43
|
+
<footer><p>© 2025 A3M Router · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></p></footer>
|
|
44
|
+
</body>
|
|
45
|
+
</html>
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Best LLM Routers 2025: A Comprehensive Comparison | A3M Router</title>
|
|
7
|
+
<meta name="description" content="Compare the best LLM routers of 2025: A3M Router vs LiteLLM vs Vercel AI Gateway vs LocalAI vs Portkey. Parallel execution, provider count, cost, MCP support, and open source analyzed.">
|
|
8
|
+
<meta name="keywords" content="best llm router, llm gateway comparison, litellm vs a3m, vercel ai gateway vs litellm, llm routing 2025, open source llm router">
|
|
9
|
+
<meta name="robots" content="index, follow">
|
|
10
|
+
<link rel="canonical" href="https://a3m-router.com/blog/best-llm-routers-2025">
|
|
11
|
+
<link rel="stylesheet" href="../assets/styles.css">
|
|
12
|
+
<script type="application/ld+json">
|
|
13
|
+
{
|
|
14
|
+
"@context": "https://schema.org",
|
|
15
|
+
"@type": "Article",
|
|
16
|
+
"headline": "Best LLM Routers 2025: A Comprehensive Comparison",
|
|
17
|
+
"description": "A thorough comparison of the leading LLM routing solutions including A3M Router, LiteLLM, Vercel AI Gateway, LocalAI, and Portkey.",
|
|
18
|
+
"author": {"@type": "Organization", "name": "A3M Router Team"},
|
|
19
|
+
"datePublished": "2025-01-15",
|
|
20
|
+
"dateModified": "2025-01-15"
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
23
|
+
</head>
|
|
24
|
+
<body>
|
|
25
|
+
<header>
|
|
26
|
+
<nav>
|
|
27
|
+
<a href="/">A3M Router</a>
|
|
28
|
+
<a href="/providers/">Providers</a>
|
|
29
|
+
<a href="/blog/">Blog</a>
|
|
30
|
+
<a href="https://github.com/Das-rebel/a3m-router">GitHub</a>
|
|
31
|
+
</nav>
|
|
32
|
+
</header>
|
|
33
|
+
|
|
34
|
+
<main>
|
|
35
|
+
<article>
|
|
36
|
+
|
|
37
|
+
# Best LLM Routers 2025: A Comprehensive Comparison
|
|
38
|
+
|
|
39
|
+
*Published January 2025 · 12 min read*
|
|
40
|
+
|
|
41
|
+
## What is an LLM Router?
|
|
42
|
+
|
|
43
|
+
An LLM router intelligently directs incoming queries to the most appropriate language model provider based on query characteristics, cost, availability, and capability requirements. Instead of hardcoding a single provider, a router acts as a smart gateway that optimizes for cost, speed, or quality on a per-query basis.
|
|
44
|
+
|
|
45
|
+
## The Core Difference: Parallel vs Sequential
|
|
46
|
+
|
|
47
|
+
Most LLM gateways use **sequential fallback**: try Provider A → fail → try Provider B → fail → try Provider C → success → return. The first provider to succeed wins, regardless of cost or quality.
|
|
48
|
+
|
|
49
|
+
**A3M Router pioneered parallel execution**: call all suitable providers simultaneously → score responses → return the best one. This means you get the optimal answer at the lowest appropriate cost, not just the first one that works.
|
|
50
|
+
|
|
51
|
+
## Comparison Table
|
|
52
|
+
|
|
53
|
+
| Router | Parallel Execution | Providers | Open Source | MCP Support | Python SDK | JS/TS SDK | Free Tier |
|
|
54
|
+
|--------|:-----------------:|----------:|:-----------:|:-----------:|:----------:|:---------:|:---------:|
|
|
55
|
+
| **A3M Router** | ✅ Yes | 47+ | ✅ Apache 2.0 | ✅ | ✅ | ✅ | ✅ |
|
|
56
|
+
| LiteLLM | ❌ Sequential | 100+ | ✅ Apache 2.0 | ❌ | ✅ | ✅ | ✅ |
|
|
57
|
+
| Vercel AI Gateway | ❌ Sequential | 12+ | ❌ Proprietary | ❌ | ✅ | ✅ | ✅ |
|
|
58
|
+
| LocalAI | ❌ Sequential | Local only | ✅ AGPL | ❌ | ✅ | ❌ | ✅ |
|
|
59
|
+
| Portkey | ❌ Sequential | 100+ | ❌ Proprietary | ❌ | ✅ | ✅ | ✅ |
|
|
60
|
+
| RouteLLM | ❌ Sequential | 6+ | ✅ Apache 2.0 | ❌ | ✅ | ❌ | ✅ |
|
|
61
|
+
|
|
62
|
+
## Detailed Analysis
|
|
63
|
+
|
|
64
|
+
### A3M Router
|
|
65
|
+
**Best for:** Teams wanting parallel execution with a unique ensemble scoring approach.
|
|
66
|
+
|
|
67
|
+
A3M Router calls multiple providers simultaneously and uses a weighted scoring system across domain match, specificity, structure alignment, verb matching, and cost tier. The cheapest provider that fully satisfies the query wins. It also features semantic caching, EXP3 diversity routing, and MVT rate-limit rotation.
|
|
68
|
+
|
|
69
|
+
- **Strengths:** Parallel execution, semantic cache, 47+ providers, open source, MCP server
|
|
70
|
+
- **Weaknesses:** Smaller community than LiteLLM
|
|
71
|
+
- **Cost:** Free (Apache 2.0); API costs depend on selected providers
|
|
72
|
+
|
|
73
|
+
### LiteLLM
|
|
74
|
+
**Best for:** Maximum provider coverage with simple fallback configuration.
|
|
75
|
+
|
|
76
|
+
LiteLLM is the most mature open-source option with 100+ provider support. It uses sequential fallback and provides a unified interface for calling any LLM. Very popular (50K+ GitHub stars) with extensive documentation.
|
|
77
|
+
|
|
78
|
+
- **Strengths:** Largest provider ecosystem, battle-tested, excellent docs
|
|
79
|
+
- **Weaknesses:** Sequential fallback only, no parallel execution, no MCP support
|
|
80
|
+
- **Cost:** Free to self-host; hosted option available
|
|
81
|
+
|
|
82
|
+
### Vercel AI Gateway
|
|
83
|
+
**Best for:** Teams already on Vercel wanting managed infrastructure.
|
|
84
|
+
|
|
85
|
+
Vercel's AI Gateway provides routing, caching, and failover for AI applications deployed on Vercel. Simple setup for Vercel users but proprietary and limited to Vercel's infrastructure.
|
|
86
|
+
|
|
87
|
+
- **Strengths:** Tight Vercel integration, managed service, simple setup
|
|
88
|
+
- **Weaknesses:** Proprietary, sequential fallback only, vendor lock-in
|
|
89
|
+
- **Cost:** Usage-based via Vercel
|
|
90
|
+
|
|
91
|
+
### LocalAI
|
|
92
|
+
**Best for:** Teams running models entirely on-premise for data privacy.
|
|
93
|
+
|
|
94
|
+
LocalAI routes to local model instances (Ollama, llama.cpp, etc.) without any external API calls. Fully self-hosted, privacy-first.
|
|
95
|
+
|
|
96
|
+
- **Strengths:** Complete data privacy, no API costs, fully on-prem
|
|
97
|
+
- **Weaknesses:** Requires GPU hardware, sequential only, local models only
|
|
98
|
+
- **Cost:** Hardware + electricity
|
|
99
|
+
|
|
100
|
+
### Portkey
|
|
101
|
+
**Best for:** Enterprise teams wanting observability and managed fallback.
|
|
102
|
+
|
|
103
|
+
Portkey provides a managed gateway with tracking, analytics, and automatic fallback across 100+ providers. Strong observability features.
|
|
104
|
+
|
|
105
|
+
- **Strengths:** Excellent observability, managed service, 100+ providers
|
|
106
|
+
- **Weaknesses:** Sequential fallback, proprietary, enterprise pricing
|
|
107
|
+
- **Cost:** Usage-based + subscription
|
|
108
|
+
|
|
109
|
+
### RouteLLM
|
|
110
|
+
**Best for:** Researchers and teams wanting an open-source routing framework.
|
|
111
|
+
|
|
112
|
+
RouteLLM provides an open-source framework for routing with learning-based approaches. Supports multiple routers and fallback strategies.
|
|
113
|
+
|
|
114
|
+
- **Strengths:** Open source, research-friendly, multiple routing strategies
|
|
115
|
+
- **Weaknesses:** Sequential fallback, smaller provider count, less production-ready
|
|
116
|
+
- **Cost:** Free to self-host
|
|
117
|
+
|
|
118
|
+
## Key Decision Factors
|
|
119
|
+
|
|
120
|
+
| Use Case | Recommended |
|
|
121
|
+
|----------|------------|
|
|
122
|
+
| Parallel execution + cost savings | A3M Router |
|
|
123
|
+
| Maximum provider variety | LiteLLM |
|
|
124
|
+
| Vercel deployment | Vercel AI Gateway |
|
|
125
|
+
| Privacy / on-premise | LocalAI |
|
|
126
|
+
| Enterprise observability | Portkey |
|
|
127
|
+
| Research / experimentation | RouteLLM |
|
|
128
|
+
|
|
129
|
+
## FAQ
|
|
130
|
+
|
|
131
|
+
### What is an LLM router?
|
|
132
|
+
An LLM router is a gateway that intelligently directs queries to the optimal language model provider based on query characteristics, cost, availability, and capability requirements, rather than hardcoding a single provider.
|
|
133
|
+
|
|
134
|
+
### How does A3M Router differ from sequential fallback?
|
|
135
|
+
A3M Router calls multiple providers in parallel and scores every response using weighted signals (domain match, specificity, structure alignment). The cheapest provider that fully satisfies the query wins — not just the first one to respond successfully.
|
|
136
|
+
|
|
137
|
+
### Which providers does A3M Router support?
|
|
138
|
+
A3M Router supports 47+ providers including OpenAI (GPT-4o, o1), Anthropic (Claude 3.5), Google (Gemini 1.5), Groq (LLaMA 3.3 70B), Mistral, DeepSeek, Cerebras, Ollama, and more.
|
|
139
|
+
|
|
140
|
+
### Is A3M Router open source?
|
|
141
|
+
Yes, A3M Router is Apache 2.0 licensed and available on GitHub at [github.com/Das-rebel/a3m-router](https://github.com/Das-rebel/a3m-router).
|
|
142
|
+
|
|
143
|
+
### How do I get started with A3M Router?
|
|
144
|
+
```bash
|
|
145
|
+
npm install -g adaptive-memory-multi-model-router
|
|
146
|
+
a3m-router serve
|
|
147
|
+
# Then use OpenAI SDK with base_url: http://localhost:8787/v1
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
</article>
|
|
151
|
+
</main>
|
|
152
|
+
|
|
153
|
+
<footer>
|
|
154
|
+
<p>© 2025 A3M Router · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a> · <a href="https://www.npmjs.com/package/adaptive-memory-multi-model-router">npm</a></p>
|
|
155
|
+
</footer>
|
|
156
|
+
</body>
|
|
157
|
+
</html>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Cerebras Provider — A3M Router</title>
|
|
7
|
+
<meta name="description" content="Configure Cerebras (LLaMA 3.3 70B, fastest inference) with A3M Router. Free tier, ultra-fast, and configuration guide.">
|
|
8
|
+
<meta name="robots" content="index, follow">
|
|
9
|
+
<link rel="canonical" href="https://das-rebel.github.io/a3m-router/providers/cerebras">
|
|
10
|
+
<link rel="stylesheet" href="../assets/styles.css">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<header><nav><a href="/">A3M Router</a> · <a href="/providers/">All Providers</a> · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></nav></header>
|
|
14
|
+
<main>
|
|
15
|
+
<h1>Cerebras Provider</h1>
|
|
16
|
+
<p><strong>Cost Tier:</strong> Free tier available · <strong>Rate Limit:</strong> Generous free tier · <strong>MCP Support:</strong> ✅ Native</p>
|
|
17
|
+
|
|
18
|
+
<h2>Supported Models</h2>
|
|
19
|
+
<ul>
|
|
20
|
+
<li><strong>LLaMA 3.3 70B</strong> — Meta's latest, served on Cerebras hardware</li>
|
|
21
|
+
<li><strong>LLaMA 3.1 8B</strong> — Fast, lightweight option</li>
|
|
22
|
+
<li><strong>Mistral 7B</strong> — Efficient open model</li>
|
|
23
|
+
</ul>
|
|
24
|
+
|
|
25
|
+
<h2>How A3M Router Routes to Cerebras</h2>
|
|
26
|
+
<p>Cerebras provides <strong>ultra-fast inference</strong> on large models through its wafer-scale hardware. A3M Router routes here for:</p>
|
|
27
|
+
<ul>
|
|
28
|
+
<li>Latency-critical simple queries</li>
|
|
29
|
+
<li>High-volume free-tier tasks</li>
|
|
30
|
+
<li>Situations where Groq's rate limits are hit</li>
|
|
31
|
+
</ul>
|
|
32
|
+
|
|
33
|
+
<h2>Configuration</h2>
|
|
34
|
+
<pre><code>CEREBRAS_API_KEY=ccke_...
|
|
35
|
+
|
|
36
|
+
# Cerebras free tier: generous daily allocation
|
|
37
|
+
# Fastest inference available for LLaMA-class models</code></pre>
|
|
38
|
+
|
|
39
|
+
<p><a href="/providers/">← All Providers</a></p>
|
|
40
|
+
</main>
|
|
41
|
+
<footer><p>© 2025 A3M Router · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></p></footer>
|
|
42
|
+
</body>
|
|
43
|
+
</html>
|