mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-15 19:52:50 +03:00
* feat(providers): add Zylo UnoRouter and Poolside registries * feat(providers): integrate audited free-tier gateways * feat: add wave2 free-tier provider registries * feat(providers): add Mixlayer Speka and TokenReply registries * feat: add wave 2 free-tier provider registries * fix: align meganova provider slug * feat(providers): integrate wave2 free-tier gateways * feat(providers): add Wave 3-A free-tier registries * feat(providers): add HelyxAI Auriko and Poixe registries * feat(providers): add Naga AI and Chat Oripe registries * feat(providers): integrate wave3 free-tier gateways * feat(providers): add FreeInference registry * feat(providers): add Free.ai registry * feat(providers): integrate wave4 free-tier gateways * docs: synchronize provider and free-tier inventories * refactor(providers): split audited gateway catalog * feat(providers): add audited Void AI and HelixMind gateways * feat(providers): finalize audited free-tier integration * test(providers): update APIKEY split count to 229 after rebase onto release/v3.8.50 The rebase merged the release catalog (201 APIKEY providers) with the PR's 28 free-tier additions, yielding 229 total. Correct the characterization count so the partition assertion reflects the true merged state. --------- Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com> Co-authored-by: backryun <bakryun0718@proton.me>
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
%% Request pipeline for /v1/chat/completions
|
|
%% Reflects: src/app/api/v1/chat/completions/route.ts → open-sse/handlers/chatCore.ts
|
|
%% v3.8.0
|
|
flowchart LR
|
|
Client["Client<br/>(IDE/CLI/SDK)"] --> Route["Next.js Route<br/>/v1/chat/completions"]
|
|
Route --> CORS["CORS preflight"]
|
|
CORS --> Validate["Zod validation<br/>(request body)"]
|
|
Validate --> Authz["AuthZ pipeline<br/>(extractApiKey +<br/>isValidApiKey)"]
|
|
Authz --> Policy["API key policy<br/>(allowlist + scopes)"]
|
|
Policy --> Guard["Prompt-injection<br/>guardrail"]
|
|
Guard --> ChatCore["handleChatCore"]
|
|
ChatCore --> Cache{"Cache hit?"}
|
|
Cache -->|yes| Return["Return cached"]
|
|
Cache -->|no| Rate["Rate limit<br/>(per-key, per-IP)"]
|
|
Rate --> Combo{"Combo<br/>target?"}
|
|
Combo -->|combo| Resolve["resolveComboTargets<br/>(19 strategies)"]
|
|
Resolve --> Single["handleSingleModel<br/>(per target)"]
|
|
Combo -->|single| Single
|
|
Single --> Translate["translateRequest<br/>(OpenAI↔Claude↔Gemini)"]
|
|
Translate --> Exec["getExecutor<br/>(89 executor modules)"]
|
|
Exec --> Upstream["Upstream Provider<br/>(329 catalog entries)"]
|
|
Upstream --> Stream["SSE / JSON"]
|
|
Stream --> Transformer["responsesTransformer<br/>(Responses↔Chat)"]
|
|
Transformer --> Client
|