@relayplane/proxy 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,12 +57,32 @@ Your Tool (OpenClaw, Cursor, etc.)
|
|
|
57
57
|
├── Infers task type (code_review, analysis, etc.)
|
|
58
58
|
├── Checks routing rules
|
|
59
59
|
├── Selects optimal model (Haiku for simple, Opus for complex)
|
|
60
|
-
|
|
60
|
+
├── Tracks outcomes (success/failure/latency)
|
|
61
|
+
└── Learns patterns → improves over time
|
|
61
62
|
│
|
|
62
63
|
▼
|
|
63
64
|
Provider (Anthropic, OpenAI, etc.)
|
|
64
65
|
```
|
|
65
66
|
|
|
67
|
+
## Learning & Adaptation
|
|
68
|
+
|
|
69
|
+
RelayPlane doesn't just route — it **learns from every request**:
|
|
70
|
+
|
|
71
|
+
- **Outcome Tracking** — Records success/failure for each route decision
|
|
72
|
+
- **Pattern Detection** — Identifies what works for your specific codebase
|
|
73
|
+
- **Continuous Improvement** — Routing gets smarter the more you use it
|
|
74
|
+
- **Local Intelligence** — All learning happens in your local SQLite DB
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# View your routing stats
|
|
78
|
+
npx @relayplane/proxy stats
|
|
79
|
+
|
|
80
|
+
# Query the raw data
|
|
81
|
+
sqlite3 ~/.relayplane/data.db "SELECT model, outcome, COUNT(*) FROM runs GROUP BY model, outcome"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Unlike static routing rules, RelayPlane adapts to **your** usage patterns.
|
|
85
|
+
|
|
66
86
|
## Supported Providers
|
|
67
87
|
|
|
68
88
|
| Provider | Models | Streaming | Tools |
|
|
@@ -87,7 +107,7 @@ Or pass through explicit models: `claude-3-5-sonnet-latest`, `gpt-4o`, etc.
|
|
|
87
107
|
|
|
88
108
|
| Without RelayPlane | With RelayPlane |
|
|
89
109
|
|-------------------|-----------------|
|
|
90
|
-
| Pay Opus
|
|
110
|
+
| Pay Opus token rates for simple tasks | Route simple tasks to Haiku (1/10 the cost) |
|
|
91
111
|
| Static model selection | Learns from outcomes over time |
|
|
92
112
|
| Manual optimization | Automatic cost-quality balance |
|
|
93
113
|
| No visibility into spend | Built-in savings tracking |
|
package/package.json
CHANGED