Phase 40: Routing Engine + Policy
- RoutingEngine with RouteDecision (model_pattern → provider) - config/routing.toml: rules, fallback chain, cost gating - Per-provider Usage tracking in /v1/usage response - 12 gateway tests green
This commit is contained in:
@@ -339,6 +339,11 @@
|
||||
- `OllamaAdapter` — wraps existing AiClient
|
||||
- `OpenRouterAdapter` — HTTP client to openrouter.ai
|
||||
- `provider_key()` routing by model prefix (openrouter/* → OpenRouter)
|
||||
- [x] **Phase 40: Routing & Policy Engine** (2026-04-23)
|
||||
- `RoutingEngine` with `RouteDecision` in aibridge::routing
|
||||
- `config/routing.toml` — rules by model_pattern, fallback chain, cost gating
|
||||
- Per-provider usage tracking: Usage.by_provider
|
||||
- 12 gateway tests green, curl gates pass
|
||||
- [ ] Fine-tuned domain models (Phase 25+)
|
||||
- [ ] Multi-node query distribution (only if ceilings bite)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user