Repository navigation
Expand file tree
/
Copy pathdemo.sh
More file actions
executable file
·85 lines (52 loc) · 2.15 KB
/
Copy pathdemo.sh
File metadata and controls
executable file
·85 lines (52 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
# A3M 90-Second Demo
# Shows: routing, cost savings, failover
echo "
╔═══════════════════════════════════════════════════════════╗
║ ║
║ A3M — The Intelligence Layer for Model Choice ║
║ ║
║ One prompt in. The right model out. ║
║ ║
╚═══════════════════════════════════════════════════════════╝
"
sleep 2
echo "
━━━ SCENE 1: Your Prompt → A3M → Best Model ━━━
You: \"Write a Python function to sort an array\"
↓
A3M analyzes: code detected → complexity: low → cost: minimize
↓
→ Groq (free, fast) ✓
"
sleep 3
echo "
━━━ SCENE 2: Same Prompt Through Normal Stack ━━━
OpenAI GPT-4: \$0.03 per 1K tokens × 500 tokens = \$0.015
A3M → Groq: \$0.00 (free tier)
Savings: 100%
"
sleep 2
echo "
━━━ SCENE 3: Provider Fails → Graceful Recovery ━━━
Groq goes down...
↓
A3M detects failure, circuit breaker trips
↓
→ Fallback to DeepSeek (auto) ✓
↓
Your app: never knew there was a problem
"
sleep 3
echo "
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Routing Accuracy: 100%
Fault Pass Rate: 100%
Projected Savings: \$0.33/query
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Start now:
npm install adaptive-memory-multi-model-router
npx a3m-router serve
Docs: github.com/Das-rebel/adaptive-memory-multi-model-router
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"