adaptive-memory-multi-model-router 2.15.5 → 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/auto-submit-sitemap.yml +41 -0
- package/.github/workflows/mcp-pypi-publish.yml +34 -0
- package/.github/workflows/pypi-publish.yml +61 -17
- package/.github/workflows/tmlpd-publish.yml +23 -0
- package/README.md +181 -207
- package/RELEASE_v2.16.0.md +149 -0
- package/TECHNICAL_README.md +253 -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/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/deepseek.html +44 -0
- package/docs/google.html +47 -0
- package/docs/groq.html +44 -0
- 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 +59 -0
- 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/package.json +36 -124
- package/python/README.md +33 -106
- package/python/mcp-server/a3m_mcp/__init__.py +20 -10
- package/python/mcp-server/a3m_mcp/server.py +172 -306
- package/python/pyproject.toml +6 -3
- 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 +2 -0
- 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/python/a3m_router.egg-info/PKG-INFO +0 -172
- package/python/a3m_router.egg-info/SOURCES.txt +0 -17
- package/python/a3m_router.egg-info/dependency_links.txt +0 -1
- package/python/a3m_router.egg-info/requires.txt +0 -24
- package/python/a3m_router.egg-info/top_level.txt +0 -1
- package/python/dist/a3m_router-2.2.1-py3-none-any.whl +0 -0
- package/python/dist/a3m_router-2.2.1.tar.gz +0 -0
- package/python/dist/a3m_router-2.2.2-py3-none-any.whl +0 -0
- package/python/dist/a3m_router-2.2.2.tar.gz +0 -0
- 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,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://a3m-router.com/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,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://a3m-router.com/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>
|
|
@@ -0,0 +1,44 @@
|
|
|
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>DeepSeek Provider — A3M Router</title>
|
|
7
|
+
<meta name="description" content="Configure DeepSeek (V3, DeepSeek Chat) with A3M Router. Chinese AI, low cost, rate limits, and configuration guide.">
|
|
8
|
+
<meta name="robots" content="index, follow">
|
|
9
|
+
<link rel="canonical" href="https://a3m-router.com/providers/deepseek">
|
|
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>DeepSeek Provider</h1>
|
|
16
|
+
<p><strong>Cost Tier:</strong> Very Low · <strong>Rate Limit:</strong> 60 RPM (free tier) · <strong>MCP Support:</strong> ✅ Native</p>
|
|
17
|
+
|
|
18
|
+
<h2>Supported Models</h2>
|
|
19
|
+
<ul>
|
|
20
|
+
<li><strong>DeepSeek V3</strong> — Latest flagship, MoE architecture, 236B parameters</li>
|
|
21
|
+
<li><strong>DeepSeek Chat</strong> — General-purpose chat model</li>
|
|
22
|
+
<li><strong>DeepSeek Coder</strong> — Specialized for code generation</li>
|
|
23
|
+
</ul>
|
|
24
|
+
|
|
25
|
+
<h2>How A3M Router Routes to DeepSeek</h2>
|
|
26
|
+
<p>DeepSeek excels at:</p>
|
|
27
|
+
<ul>
|
|
28
|
+
<li>Code generation and programming tasks (DeepSeek Coder)</li>
|
|
29
|
+
<li>Cost-sensitive production workloads</li>
|
|
30
|
+
<li>Multilingual tasks (strong Chinese and English support)</li>
|
|
31
|
+
<li>Math and reasoning tasks</li>
|
|
32
|
+
</ul>
|
|
33
|
+
|
|
34
|
+
<h2>Configuration</h2>
|
|
35
|
+
<pre><code>DEEPSEEK_API_KEY=sk-dsdk...
|
|
36
|
+
|
|
37
|
+
# DeepSeek is one of the lowest-cost providers
|
|
38
|
+
# A3M Router routes coding and math tasks here for cost savings</code></pre>
|
|
39
|
+
|
|
40
|
+
<p><a href="/providers/">← All Providers</a></p>
|
|
41
|
+
</main>
|
|
42
|
+
<footer><p>© 2025 A3M Router · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></p></footer>
|
|
43
|
+
</body>
|
|
44
|
+
</html>
|
|
@@ -0,0 +1,47 @@
|
|
|
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>Google AI Provider — A3M Router</title>
|
|
7
|
+
<meta name="description" content="Configure Google AI (Gemini 1.5 Pro, Gemini 1.5 Flash) with A3M Router. Free tier, rate limits, and configuration guide.">
|
|
8
|
+
<meta name="robots" content="index, follow">
|
|
9
|
+
<link rel="canonical" href="https://a3m-router.com/providers/google">
|
|
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>Google AI Provider</h1>
|
|
16
|
+
<p><strong>Cost Tier:</strong> Free tier available · <strong>Rate Limit:</strong> 15–60 RPM depending on tier · <strong>MCP Support:</strong> ✅ Native</p>
|
|
17
|
+
|
|
18
|
+
<h2>Supported Models</h2>
|
|
19
|
+
<ul>
|
|
20
|
+
<li><strong>Gemini 1.5 Pro</strong> — Advanced reasoning, 2M token context, multimodal</li>
|
|
21
|
+
<li><strong>Gemini 1.5 Flash</strong> — Fast, cost-efficient, 1M context</li>
|
|
22
|
+
<li><strong>Gemini 1.0 Pro</strong> — Previous generation</li>
|
|
23
|
+
</ul>
|
|
24
|
+
|
|
25
|
+
<h2>How A3M Router Routes to Google AI</h2>
|
|
26
|
+
<p>Google AI is ideal for:</p>
|
|
27
|
+
<ul>
|
|
28
|
+
<li>Long document processing (up to 2M token context with Gemini 1.5 Pro)</li>
|
|
29
|
+
<li>Multimodal inputs (images, video, audio)</li>
|
|
30
|
+
<li>Free-tier queries (Gemini Flash has generous free quota)</li>
|
|
31
|
+
<li>Fast turnaround on simple Q&A tasks</li>
|
|
32
|
+
</ul>
|
|
33
|
+
|
|
34
|
+
<h2>Configuration</h2>
|
|
35
|
+
<pre><code>GOOGLE_API_KEY=AIza...
|
|
36
|
+
|
|
37
|
+
# Gemini 1.5 Flash has a generous free tier
|
|
38
|
+
# A3M Router will route cost-sensitive queries here automatically</code></pre>
|
|
39
|
+
|
|
40
|
+
<h2>Rate Limits</h2>
|
|
41
|
+
<p>Google AI Studio free tier: 15 requests/minute, 1M tokens/month for Gemini 1.5 Flash. Paid tier increases limits significantly.</p>
|
|
42
|
+
|
|
43
|
+
<p><a href="/providers/">← All Providers</a></p>
|
|
44
|
+
</main>
|
|
45
|
+
<footer><p>© 2025 A3M Router · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></p></footer>
|
|
46
|
+
</body>
|
|
47
|
+
</html>
|
|
@@ -0,0 +1,44 @@
|
|
|
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>Groq Provider — A3M Router</title>
|
|
7
|
+
<meta name="description" content="Configure Groq (LLaMA 3.3 70B, Mixtral 8x7B) with A3M Router. Free tier, fastest inference, rate limits, and configuration.">
|
|
8
|
+
<meta name="robots" content="index, follow">
|
|
9
|
+
<link rel="canonical" href="https://a3m-router.com/providers/groq">
|
|
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>Groq Provider</h1>
|
|
16
|
+
<p><strong>Cost Tier:</strong> Free tier available · <strong>Rate Limit:</strong> 14,400 requests/day (free) · <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 open-weight model, excellent quality</li>
|
|
21
|
+
<li><strong>Mixtral 8x7B</strong> — Fast mixture-of-experts inference</li>
|
|
22
|
+
<li><strong>LLaMA 3.1 8B</strong> — Lightweight, very fast</li>
|
|
23
|
+
<li><strong>Gemma 2 9B</strong> — Google's open model</li>
|
|
24
|
+
</ul>
|
|
25
|
+
|
|
26
|
+
<h2>How A3M Router Routes to Groq</h2>
|
|
27
|
+
<p>Groq's key advantage is <strong>inference speed</strong> — the fastest in the industry for supported models. A3M Router routes to Groq for:</p>
|
|
28
|
+
<ul>
|
|
29
|
+
<li>Real-time chat applications where latency is critical</li>
|
|
30
|
+
<li>High-volume, simple Q&A (free-tier queries)</li>
|
|
31
|
+
<li>Tasks that Groq's models handle well (general reasoning, coding)</li>
|
|
32
|
+
</ul>
|
|
33
|
+
|
|
34
|
+
<h2>Configuration</h2>
|
|
35
|
+
<pre><code>GROQ_API_KEY=gsk_...
|
|
36
|
+
|
|
37
|
+
# Groq free tier: 14,400 requests/day
|
|
38
|
+
# A3M Router automatically uses Groq for latency-sensitive queries</code></pre>
|
|
39
|
+
|
|
40
|
+
<p><a href="/providers/">← All Providers</a></p>
|
|
41
|
+
</main>
|
|
42
|
+
<footer><p>© 2025 A3M Router · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></p></footer>
|
|
43
|
+
</body>
|
|
44
|
+
</html>
|
|
@@ -0,0 +1,41 @@
|
|
|
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>Providers — A3M Router</title>
|
|
7
|
+
<meta name="description" content="All LLM providers supported by A3M Router: OpenAI, Anthropic, Google, Groq, Mistral, Ollama, DeepSeek, Cerebras, and more.">
|
|
8
|
+
<meta name="robots" content="index, follow">
|
|
9
|
+
<link rel="canonical" href="https://a3m-router.com/providers/">
|
|
10
|
+
<link rel="stylesheet" href="../assets/styles.css">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<header><nav><a href="/">A3M Router</a> · <a href="/blog/">Blog</a> · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></nav></header>
|
|
14
|
+
<main>
|
|
15
|
+
<h1>Supported Providers</h1>
|
|
16
|
+
<p>A3M Router supports 47+ providers. Here are the most commonly used:</p>
|
|
17
|
+
|
|
18
|
+
<h2>Free Tier Providers</h2>
|
|
19
|
+
<ul>
|
|
20
|
+
<li><a href="google.html">Google AI</a> — Gemini 1.5 Flash, generous free tier</li>
|
|
21
|
+
<li><a href="groq.html">Groq</a> — LLaMA 3.3 70B, fastest inference, free tier</li>
|
|
22
|
+
<li><a href="cerebras.html">Cerebras</a> — LLaMA 3.3 70B, ultra-fast, free tier</li>
|
|
23
|
+
<li><a href="ollama.html">Ollama</a> — Local models, zero API cost</li>
|
|
24
|
+
</ul>
|
|
25
|
+
|
|
26
|
+
<h2>Premium Providers</h2>
|
|
27
|
+
<ul>
|
|
28
|
+
<li><a href="openai.html">OpenAI</a> — GPT-4o, o1, GPT-4o-mini</li>
|
|
29
|
+
<li><a href="anthropic.html">Anthropic</a> — Claude 3.5 Sonnet, Claude 3 Haiku</li>
|
|
30
|
+
<li><a href="mistral.html">Mistral AI</a> — Mistral Large, Codestral</li>
|
|
31
|
+
<li><a href="deepseek.html">DeepSeek</a> — DeepSeek V3, DeepSeek Coder</li>
|
|
32
|
+
</ul>
|
|
33
|
+
|
|
34
|
+
<h2>Adding Your Provider</h2>
|
|
35
|
+
<p>A3M Router is designed to work with any OpenAI-compatible API. To add a new provider, set the appropriate environment variable and A3M Router will automatically detect and use it.</p>
|
|
36
|
+
|
|
37
|
+
<p><a href="/">← Back to Home</a></p>
|
|
38
|
+
</main>
|
|
39
|
+
<footer><p>© 2025 A3M Router · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></p></footer>
|
|
40
|
+
</body>
|
|
41
|
+
</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>Mistral AI Provider — A3M Router</title>
|
|
7
|
+
<meta name="description" content="Configure Mistral AI (Mistral Large, Mistral 7B) with A3M Router. European AI, rate limits, and configuration.">
|
|
8
|
+
<meta name="robots" content="index, follow">
|
|
9
|
+
<link rel="canonical" href="https://a3m-router.com/providers/mistral">
|
|
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>Mistral AI Provider</h1>
|
|
16
|
+
<p><strong>Cost Tier:</strong> Paid · <strong>Rate Limit:</strong> Varies by tier · <strong>MCP Support:</strong> ✅ Native</p>
|
|
17
|
+
|
|
18
|
+
<h2>Supported Models</h2>
|
|
19
|
+
<ul>
|
|
20
|
+
<li><strong>Mistral Large</strong> — Flagship model for complex reasoning, coding, and analysis</li>
|
|
21
|
+
<li><strong>Mistral 7B</strong> — Fast, efficient open model</li>
|
|
22
|
+
<li><strong>Mixtral 8x22B</strong> — Mixture of experts, excellent quality</li>
|
|
23
|
+
<li><strong>Codestral</strong> — Specialized for code generation</li>
|
|
24
|
+
</ul>
|
|
25
|
+
|
|
26
|
+
<h2>How A3M Router Routes to Mistral</h2>
|
|
27
|
+
<p>Mistral is a strong choice for:</p>
|
|
28
|
+
<ul>
|
|
29
|
+
<li>European data residency requirements (Mistral is based in France)</li>
|
|
30
|
+
<li>Code generation tasks (Codestral)</li>
|
|
31
|
+
<li>Balanced quality/cost for general reasoning</li>
|
|
32
|
+
</ul>
|
|
33
|
+
|
|
34
|
+
<h2>Configuration</h2>
|
|
35
|
+
<pre><code>MISTRAL_API_KEY=...
|
|
36
|
+
|
|
37
|
+
# Set in environment or .env file</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>
|
|
@@ -0,0 +1,50 @@
|
|
|
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>Ollama Provider — A3M Router</title>
|
|
7
|
+
<meta name="description" content="Configure Ollama (local LLM inference) with A3M Router. Zero API costs, privacy-first, and configuration guide.">
|
|
8
|
+
<meta name="robots" content="index, follow">
|
|
9
|
+
<link rel="canonical" href="https://a3m-router.com/providers/ollama">
|
|
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>Ollama Provider</h1>
|
|
16
|
+
<p><strong>Cost Tier:</strong> Free (hardware only) · <strong>Rate Limit:</strong> GPU-dependent · <strong>MCP Support:</strong> ✅ Native</p>
|
|
17
|
+
|
|
18
|
+
<h2>Supported Models</h2>
|
|
19
|
+
<ul>
|
|
20
|
+
<li><strong>LLaMA 3.1</strong> — Meta's open instruction-tuned model (8B, 70B)</li>
|
|
21
|
+
<li><strong>Mistral</strong> — Efficient open model</li>
|
|
22
|
+
<li><strong>Qwen 2.5</strong> — Alibaba's multilingual model</li>
|
|
23
|
+
<li><strong>Phi-3</strong> — Microsoft's efficient small model</li>
|
|
24
|
+
<li><strong>Any GGUF-format model</strong> — Custom model support</li>
|
|
25
|
+
</ul>
|
|
26
|
+
|
|
27
|
+
<h2>How A3M Router Routes to Ollama</h2>
|
|
28
|
+
<p>Ollama provides completely free, local inference. A3M Router routes to Ollama for:</p>
|
|
29
|
+
<ul>
|
|
30
|
+
<li>Maximum privacy (no data leaves your infrastructure)</li>
|
|
31
|
+
<li>Zero API costs for high-volume simple tasks</li>
|
|
32
|
+
<li>Development and testing without API key requirements</li>
|
|
33
|
+
</ul>
|
|
34
|
+
|
|
35
|
+
<h2>Configuration</h2>
|
|
36
|
+
<pre><code># Install Ollama, then pull models:
|
|
37
|
+
# ollama pull llama3.1
|
|
38
|
+
# ollama pull mistral
|
|
39
|
+
|
|
40
|
+
# A3M Router connects to local Ollama at http://localhost:11434
|
|
41
|
+
# No API key required — zero cost for inference</code></pre>
|
|
42
|
+
|
|
43
|
+
<h2>Requirements</h2>
|
|
44
|
+
<p>GPU recommended for reasonable inference speed. CPU-only works for small models (7B params) but is significantly slower.</p>
|
|
45
|
+
|
|
46
|
+
<p><a href="/providers/">← All Providers</a></p>
|
|
47
|
+
</main>
|
|
48
|
+
<footer><p>© 2025 A3M Router · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></p></footer>
|
|
49
|
+
</body>
|
|
50
|
+
</html>
|
|
@@ -0,0 +1,57 @@
|
|
|
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>OpenAI Provider — A3M Router</title>
|
|
7
|
+
<meta name="description" content="Configure OpenAI (GPT-4o, o1, GPT-4o-mini) with A3M Router. Cost tier, rate limits, models, and configuration guide.">
|
|
8
|
+
<meta name="robots" content="index, follow">
|
|
9
|
+
<link rel="canonical" href="https://a3m-router.com/providers/openai">
|
|
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>OpenAI Provider</h1>
|
|
16
|
+
<p><strong>Cost Tier:</strong> Paid (~$0.002–$15/1M tokens) · <strong>Rate Limit:</strong> Varies by model and tier · <strong>MCP Support:</strong> ✅ Native</p>
|
|
17
|
+
|
|
18
|
+
<h2>Supported Models</h2>
|
|
19
|
+
<ul>
|
|
20
|
+
<li><strong>GPT-4o</strong> — Latest flagship, multimodal, 128K context</li>
|
|
21
|
+
<li><strong>GPT-4o-mini</strong> — Cost-optimized, fast, same capabilities</li>
|
|
22
|
+
<li><strong>o1-preview</strong> — Reasoning model for complex tasks</li>
|
|
23
|
+
<li><strong>o1-mini</strong> — Reasoning model, lower cost</li>
|
|
24
|
+
<li><strong>GPT-4 Turbo</strong> — Previous flagship, 128K context</li>
|
|
25
|
+
</ul>
|
|
26
|
+
|
|
27
|
+
<h2>How A3M Router Routes to OpenAI</h2>
|
|
28
|
+
<p>A3M Router automatically detects queries requiring reasoning, coding, or multimodal capabilities and routes them to OpenAI models when the query demands it. OpenAI is typically used for:</p>
|
|
29
|
+
<ul>
|
|
30
|
+
<li>Complex reasoning and chain-of-thought tasks (o1 series)</li>
|
|
31
|
+
<li>Code generation and debugging (GPT-4o)</li>
|
|
32
|
+
<li>Multimodal inputs (images + text)</li>
|
|
33
|
+
<li>High-precision instruction following</li>
|
|
34
|
+
</ul>
|
|
35
|
+
|
|
36
|
+
<h2>Configuration</h2>
|
|
37
|
+
<pre><code># Set in your environment or .env file
|
|
38
|
+
OPENAI_API_KEY=sk-...
|
|
39
|
+
|
|
40
|
+
# A3M Router automatically detects and uses OpenAI when appropriate
|
|
41
|
+
# No additional config needed for standard use</code></pre>
|
|
42
|
+
|
|
43
|
+
<h2>Rate Limits</h2>
|
|
44
|
+
<p>Rate limits vary by OpenAI API tier. A3M Router's MVT (Maximum Value-Targeted) rotation automatically distributes requests across multiple API keys if configured, reducing rate limit impact.</p>
|
|
45
|
+
|
|
46
|
+
<h2>Cost Optimization Tips</h2>
|
|
47
|
+
<ul>
|
|
48
|
+
<li>Use <code>gpt-4o-mini</code> for simple queries — 60x cheaper than GPT-4o</li>
|
|
49
|
+
<li>Enable semantic caching to avoid repeat API calls</li>
|
|
50
|
+
<li>Route straightforward Q&A to free-tier providers (Groq, Cerebras) and reserve OpenAI for complex tasks</li>
|
|
51
|
+
</ul>
|
|
52
|
+
|
|
53
|
+
<p><a href="/providers/">← All Providers</a></p>
|
|
54
|
+
</main>
|
|
55
|
+
<footer><p>© 2025 A3M Router · <a href="https://github.com/Das-rebel/a3m-router">GitHub</a></p></footer>
|
|
56
|
+
</body>
|
|
57
|
+
</html>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
3
|
+
<url>
|
|
4
|
+
<loc>https://a3m-router.com/</loc>
|
|
5
|
+
<priority>1.0</priority>
|
|
6
|
+
<changefreq>weekly</changefreq>
|
|
7
|
+
<lastmod>2025-01-15</lastmod>
|
|
8
|
+
</url>
|
|
9
|
+
<url>
|
|
10
|
+
<loc>https://a3m-router.com/blog/best-llm-routers-2025</loc>
|
|
11
|
+
<priority>0.8</priority>
|
|
12
|
+
<changefreq>monthly</changefreq>
|
|
13
|
+
<lastmod>2025-01-15</lastmod>
|
|
14
|
+
</url>
|
|
15
|
+
<url>
|
|
16
|
+
<loc>https://a3m-router.com/providers/</loc>
|
|
17
|
+
<priority>0.7</priority>
|
|
18
|
+
<changefreq>weekly</changefreq>
|
|
19
|
+
<lastmod>2025-01-15</lastmod>
|
|
20
|
+
</url>
|
|
21
|
+
<url>
|
|
22
|
+
<loc>https://a3m-router.com/providers/openai/</loc>
|
|
23
|
+
<priority>0.6</priority>
|
|
24
|
+
<changefreq>monthly</changefreq>
|
|
25
|
+
<lastmod>2025-01-15</lastmod>
|
|
26
|
+
</url>
|
|
27
|
+
<url>
|
|
28
|
+
<loc>https://a3m-router.com/providers/anthropic/</loc>
|
|
29
|
+
<priority>0.6</priority>
|
|
30
|
+
<changefreq>monthly</changefreq>
|
|
31
|
+
<lastmod>2025-01-15</lastmod>
|
|
32
|
+
</url>
|
|
33
|
+
<url>
|
|
34
|
+
<loc>https://a3m-router.com/providers/google/</loc>
|
|
35
|
+
<priority>0.6</priority>
|
|
36
|
+
<changefreq>monthly</changefreq>
|
|
37
|
+
<lastmod>2025-01-15</lastmod>
|
|
38
|
+
</url>
|
|
39
|
+
<url>
|
|
40
|
+
<loc>https://a3m-router.com/providers/groq/</loc>
|
|
41
|
+
<priority>0.6</priority>
|
|
42
|
+
<changefreq>monthly</changefreq>
|
|
43
|
+
<lastmod>2025-01-15</lastmod>
|
|
44
|
+
</url>
|
|
45
|
+
<url>
|
|
46
|
+
<loc>https://a3m-router.com/providers/mistral/</loc>
|
|
47
|
+
<priority>0.6</priority>
|
|
48
|
+
<changefreq>monthly</changefreq>
|
|
49
|
+
<lastmod>2025-01-15</lastmod>
|
|
50
|
+
</url>
|
|
51
|
+
<url>
|
|
52
|
+
<loc>https://a3m-router.com/providers/ollama/</loc>
|
|
53
|
+
<priority>0.6</priority>
|
|
54
|
+
<changefreq>monthly</changefreq>
|
|
55
|
+
<lastmod>2025-01-15</lastmod>
|
|
56
|
+
</url>
|
|
57
|
+
<url>
|
|
58
|
+
<loc>https://a3m-router.com/providers/deepseek/</loc>
|
|
59
|
+
<priority>0.6</priority>
|
|
60
|
+
<changefreq>monthly</changefreq>
|
|
61
|
+
<lastmod>2025-01-15</lastmod>
|
|
62
|
+
</url>
|
|
63
|
+
<url>
|
|
64
|
+
<loc>https://a3m-router.com/providers/cerebras/</loc>
|
|
65
|
+
<priority>0.6</priority>
|
|
66
|
+
<changefreq>monthly</changefreq>
|
|
67
|
+
<lastmod>2025-01-15</lastmod>
|
|
68
|
+
</url>
|
|
69
|
+
</urlset>
|