mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
Introduce docs/diagrams/ with the README index and 8 versioned Mermaid sources that reflect the v3.8.0 platform: - request-pipeline.mmd /v1/chat/completions request pipeline - auto-combo-9factor.mmd Auto-Combo 9-factor scoring weights - resilience-3layers.mmd Provider breaker / cooldown / model lockout - i18n-flow.mmd Hash-based incremental doc translation - mcp-tools-37.mmd MCP Server tool inventory by category - cloud-agent-flow.mmd Codex / Devin / Jules task lifecycle - authz-pipeline.mmd 3-class authz pipeline (PUBLIC/CLIENT_API/MANAGEMENT) - db-schema-overview.mmd Selected core SQLite relations Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
800 B
Plaintext
24 lines
800 B
Plaintext
%% Auto-Combo 9-factor scoring
|
||
%% Reflects: open-sse/services/autoCombo/scoring.ts (DEFAULT_WEIGHTS, sum = 1.0)
|
||
%% v3.8.0
|
||
flowchart TB
|
||
Request["Incoming request"] --> Candidates["Eligible candidates<br/>(provider × model × account)"]
|
||
Candidates --> Score["Compute composite score<br/>per candidate"]
|
||
|
||
subgraph Factors["9-factor scoring weights (sum = 1.0)"]
|
||
f1["health (0.22)"]
|
||
f2["quota (0.17)"]
|
||
f3["costInv (0.17)"]
|
||
f4["latencyInv (0.13)"]
|
||
f5["taskFit (0.08)"]
|
||
f6["specificityMatch (0.08)"]
|
||
f7["stability (0.05)"]
|
||
f8["tierPriority (0.05)"]
|
||
f9["tierAffinity (0.05)"]
|
||
end
|
||
|
||
Score --> Factors
|
||
Factors --> Final["Sort by score<br/>(desc)"]
|
||
Final --> Top["Pick top-N targets"]
|
||
Top --> Dispatch["Dispatch sequentially<br/>(short-circuit on success)"]
|