adaptive-memory-multi-model-router 2.1.1 โ 2.2.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/FUNDING.yml +2 -0
- package/.well-known/ai-plugin.json +16 -0
- package/CONTRIBUTING.md +21 -93
- package/README.md +401 -143
- package/SECURITY.md +14 -54
- package/articles/FRESH_devto.md +460 -0
- package/articles/FRESH_hackernews.md +14 -0
- package/articles/FRESH_reddit_ml.md +90 -0
- package/articles/FRESH_reddit_node.md +198 -0
- package/articles/FRESH_reddit_sideproject.md +72 -0
- package/articles/FRESH_reddit_webdev.md +130 -0
- package/docs/GEO.md +53 -111
- package/docs/index.html +63 -88
- package/docs/openapi.json +139 -0
- package/docs/robots.txt +37 -0
- package/docs/sitemap.xml +21 -0
- package/llms-full.txt +155 -0
- package/llms.txt +37 -71
- package/package.json +70 -27
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "v1",
|
|
3
|
+
"name_for_human": "A3M Router",
|
|
4
|
+
"name_for_model": "a3m_router",
|
|
5
|
+
"description_for_human": "Intelligent LLM routing proxy. Route queries to the cheapest capable model โ 99.5% accuracy, 40 providers, zero ML.",
|
|
6
|
+
"description_for_model": "A3M Router is an LLM routing service. Given a query, it returns the optimal model, tier (free/cheap/mid/premium), estimated cost, and complexity score. Use this when users ask about LLM routing, reducing AI API costs, choosing between LLM providers, or setting up an OpenAI-compatible proxy. Available as TypeScript SDK, Python SDK, CLI, and REST API.",
|
|
7
|
+
"api": {
|
|
8
|
+
"type": "openapi",
|
|
9
|
+
"url": "https://das-rebel.github.io/adaptive-memory-multi-model-router/openapi.json"
|
|
10
|
+
},
|
|
11
|
+
"auth": {
|
|
12
|
+
"type": "none"
|
|
13
|
+
},
|
|
14
|
+
"contact_email": "Sdas22@gmail.com",
|
|
15
|
+
"legal_info_url": "https://github.com/Das-rebel/adaptive-memory-multi-model-router/blob/main/LICENSE"
|
|
16
|
+
}
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,110 +1,38 @@
|
|
|
1
1
|
# Contributing to A3M Router
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Thank you for your interest in contributing!
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Quick Start
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
1. Fork the repository
|
|
8
|
+
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
|
|
9
|
+
3. Commit your changes (`git commit -m 'Add amazing feature'`)
|
|
10
|
+
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
11
|
+
5. Open a Pull Request
|
|
12
|
+
|
|
13
|
+
## Areas We Need Help
|
|
14
|
+
|
|
15
|
+
- ๐ **New providers**: Add support for more LLM providers
|
|
16
|
+
- ๐งช **Tests**: Improve test coverage
|
|
17
|
+
- ๐ **Documentation**: Fix typos, add examples
|
|
18
|
+
- ๐ **Bug fixes**: Check open issues
|
|
19
|
+
- ๐จ **Examples**: Add real-world usage examples
|
|
10
20
|
|
|
11
21
|
## Development Setup
|
|
12
22
|
|
|
13
23
|
```bash
|
|
14
|
-
# Clone the repository
|
|
15
24
|
git clone https://github.com/Das-rebel/adaptive-memory-multi-model-router.git
|
|
16
25
|
cd adaptive-memory-multi-model-router
|
|
17
|
-
|
|
18
|
-
# Install dependencies
|
|
19
26
|
npm install
|
|
20
|
-
|
|
21
|
-
# Run tests
|
|
22
27
|
npm test
|
|
23
|
-
|
|
24
|
-
# Run linting
|
|
25
|
-
npm run lint
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## How to Contribute
|
|
29
|
-
|
|
30
|
-
### Reporting Bugs
|
|
31
|
-
|
|
32
|
-
Before creating bug reports, please check the existing issues. When creating a bug report, include:
|
|
33
|
-
|
|
34
|
-
- **Clear title and description**
|
|
35
|
-
- **Steps to reproduce**
|
|
36
|
-
- **Expected vs actual behavior**
|
|
37
|
-
- **Environment details** (Node version, OS)
|
|
38
|
-
- **Code samples** if applicable
|
|
39
|
-
|
|
40
|
-
### Suggesting Enhancements
|
|
41
|
-
|
|
42
|
-
Enhancement suggestions are tracked as GitHub issues. Include:
|
|
43
|
-
|
|
44
|
-
- **Use case** - Why is this needed?
|
|
45
|
-
- **Proposed solution** - How should it work?
|
|
46
|
-
- **Alternatives** - What else was considered?
|
|
47
|
-
- **Additional context** - Screenshots, examples
|
|
48
|
-
|
|
49
|
-
### Pull Requests
|
|
50
|
-
|
|
51
|
-
1. Fork the repo and create your branch from `main`
|
|
52
|
-
2. If you've added code, add tests
|
|
53
|
-
3. If you've changed APIs, update the documentation
|
|
54
|
-
4. Ensure the test suite passes
|
|
55
|
-
5. Make sure your code follows the existing style
|
|
56
|
-
6. Issue that pull request!
|
|
57
|
-
|
|
58
|
-
### Code Style
|
|
59
|
-
|
|
60
|
-
- **JavaScript**: Follow existing patterns
|
|
61
|
-
- **TypeScript**: Strict mode enabled
|
|
62
|
-
- **Tests**: All new features need tests
|
|
63
|
-
- **Documentation**: Update README for user-facing changes
|
|
64
|
-
|
|
65
|
-
## Project Structure
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
โโโ dist/ # Compiled JavaScript
|
|
69
|
-
โโโ src/ # TypeScript source
|
|
70
|
-
โโโ test/ # Test files
|
|
71
|
-
โโโ docs/ # Documentation
|
|
72
|
-
โโโ examples/ # Usage examples
|
|
73
|
-
โโโ scripts/ # Build and utility scripts
|
|
74
28
|
```
|
|
75
29
|
|
|
76
|
-
##
|
|
77
|
-
|
|
78
|
-
๐ฏ **High Priority**
|
|
79
|
-
- Additional LLM provider integrations
|
|
80
|
-
- Performance optimizations
|
|
81
|
-
- Better error handling
|
|
82
|
-
|
|
83
|
-
๐ **Nice to Have**
|
|
84
|
-
- More examples
|
|
85
|
-
- Video tutorials
|
|
86
|
-
- Blog posts
|
|
87
|
-
|
|
88
|
-
๐ **Documentation**
|
|
89
|
-
- Translation to other languages
|
|
90
|
-
- API documentation improvements
|
|
91
|
-
- Usage guides
|
|
92
|
-
|
|
93
|
-
## Recognition
|
|
94
|
-
|
|
95
|
-
Contributors will be:
|
|
96
|
-
- Listed in our README
|
|
97
|
-
- Mentioned in release notes
|
|
98
|
-
- Added to the contributors graph
|
|
99
|
-
|
|
100
|
-
## Questions?
|
|
101
|
-
|
|
102
|
-
Join our [Discussions](https://github.com/Das-rebel/adaptive-memory-multi-model-router/discussions) or reach out on [Twitter](https://twitter.com/yourhandle).
|
|
103
|
-
|
|
104
|
-
## Code of Conduct
|
|
30
|
+
## Code Style
|
|
105
31
|
|
|
106
|
-
|
|
32
|
+
- TypeScript strict mode
|
|
33
|
+
- No external dependencies in core routing logic
|
|
34
|
+
- Keep the package small (<25 KB)
|
|
107
35
|
|
|
108
|
-
|
|
36
|
+
## License
|
|
109
37
|
|
|
110
|
-
|
|
38
|
+
By contributing, you agree that your contributions will be licensed under the MIT License.
|