a3m-router
توضیحات
Auto-selects cheapest capable LLM from 47+ providers — 70-95% cost savings
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | a3m-router-2.2.3 |
| نام | a3m-router |
| نسخه کتابخانه | 2.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/a3m-router/ |
| مجوز | MIT |
# A3M Router - Python Package
**Intelligent LLM routing for Python applications.**
[](https://pypi.org/project/a3m-router/)
[](https://pypi.org/project/a3m-router/)
[](https://www.npmjs.com/package/adaptive-memory-multi-model-router)
## Why A3M Router?
| Problem | Solution |
|---------|----------|
| GPT-4o is $15/1M tokens | A3M routes to $0.001 providers |
| Managing 80+ API keys | One endpoint, A3M handles the rest |
| Provider goes down | Automatic failover to next best option |
| Need best answer, cost doesn't matter | Parallel ensemble calls |
## Installation
```bash
pip install a3m-router
```
## Quick Start
```python
from a3m.router import A3MRouter
router = A3MRouter(model="auto")
result = router.route("Explain quantum entanglement")
print(result.content)
```
## Features
- **80+ Providers** - OpenAI, Anthropic, Groq, Mistral, DeepSeek, and more
- **14% Faster** - Optimized routing vs OpenRouter
- **92% Cheaper** - Routes to cheapest capable provider
- **OpenAI Compatible** - Use existing OpenAI SDK code
- **Adaptive Memory** - Learns from routing patterns
## Performance
| Metric | A3M Router | OpenRouter |
|--------|-------------|------------|
| Latency | 162ms | 189ms |
| Cost/1K | $0.00012 | $0.0015 |
| Quality | 94% | 92% |
## Documentation
Full documentation: https://github.com/Das-rebel/a3m-router#readme
## License
MIT License
نیازمندی
| مقدار | نام |
|---|---|
| - | httpx>=0.24.0 |
| xtr | langchain>=0.1.0; |
| xtr | llamaindex>=0.9.0; |
| xtr | qdrant-client>=1.7.0; |
| xtr | weaviate-client>=4.0.0; |
| xtr | langchain>=0.1.0; |
| xtr | llamaindex>=0.9.0; |
| xtr | qdrant-client>=1.7.0; |
| xtr | weaviate-client>=4.0.0; |
| xtr | pytest>=7.4.0; |
| xtr | pytest-asyncio>=0.21.0; |
| xtr | black>=23.0.0; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl a3m-router-2.2.3:
pip install a3m-router.whl
نصب پکیج tar.gz a3m-router-2.2.3:
pip install a3m-router.tar.gz