mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-26 17:12:27 +03:00
* feat(alibaba): add free-tier routing with console quota and builtin allowlist Classify DashScope free vs paid models via console quota API, a hardcoded operator allowlist fallback, and per-connection drained tracking. Wire wildcard combo expansion, model refresh, combo exhaustion, and audit redaction for Alibaba console credentials. * fix(routing): reset forced connection pin and persist Alibaba free-tier drain Drop session affinity pins when a forced connection is excluded after 429, and record Alibaba free-tier exhaustion on upstream 403 so per-key drained lists stay accurate without blocking sibling keys. * fix(alibaba): prefer live quota sync over static free-tier allowlist Stop unioning the builtin text allowlist when a console quota snapshot exists, treat expired quotaValidityPeriod as not_capable, and add a dated JSON pack plus sync-alibaba-allowlist script for operator refresh without code edits. * docs(alibaba): document free-tier console path + allowlist env overrides Adds the 4 ALIBABA_FREE_TIER_*_FE_PATH / ALIBABA_FREE_TIER_ALLOWLIST_PATH env vars (referenced by alibabaFreeTierQuotaFetcher.ts and alibabaFreeTierAllowlist.ts) to .env.example and docs/reference/ENVIRONMENT.md so the env/docs contract check passes. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> * refactor(open-sse): split alibabaFreeTierQuotaFetcher.ts under file-size cap Extract pure parsing/classification/eligibility-filtering logic into alibabaFreeTierQuotaClassify.ts and shared types/primitives into alibabaFreeTierQuotaTypes.ts, leaving the HTTP/console-fetch flow in the original file. Public API is unchanged (re-exported), behavior is identical. Co-authored-by: AndrianBalanescu <AndrianBalanescu@users.noreply.github.com> * fix: resolve typecheck errors in alibaba-free-tier routing --------- Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com> Co-authored-by: AndrianBalanescu <AndrianBalanescu@users.noreply.github.com> Co-authored-by: AndrianBalanescu <andrian@balanescu.dev>
202 lines
6.8 KiB
JSON
202 lines
6.8 KiB
JSON
{
|
|
"code": "200",
|
|
"data": {
|
|
"DataV2": {
|
|
"data": {
|
|
"data": {
|
|
"freeTierQuotas": [
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3.5-omni-plus-2026-03-15",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3-omni-flash-realtime-2025-09-15",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3-omni-flash-realtime",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen-omni-turbo-realtime-2025-05-08",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3.5-omni-flash-realtime-2026-03-15",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3.5-omni-plus",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3-omni-flash",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3-omni-flash-2025-12-01",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen-omni-turbo-realtime",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen-omni-turbo",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen2.5-omni-7b",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3.5-omni-plus-realtime",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen-omni-turbo-2025-03-26",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3.5-omni-flash",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3-omni-flash-realtime-2025-12-01",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3.5-omni-plus-realtime-2026-03-15",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3.5-omni-flash-realtime",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3.5-omni-flash-2026-03-15",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 1000000,
|
|
"quotaValidityPeriod": 1786896000000,
|
|
"freeTierOnly": true,
|
|
"quotaTotalPercentage": 100,
|
|
"model": "qwen3-omni-flash-2025-09-15",
|
|
"quotaTotal": 1000000,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 0,
|
|
"freeTierOnly": false,
|
|
"quotaTotalPercentage": 0,
|
|
"model": "qwen-omni-turbo-realtime-latest",
|
|
"quotaTotal": 0,
|
|
"quotaStatus": "VALID"
|
|
},
|
|
{
|
|
"quotaInitTotal": 0,
|
|
"freeTierOnly": false,
|
|
"quotaTotalPercentage": 0,
|
|
"model": "qwen-omni-turbo-latest",
|
|
"quotaTotal": 0,
|
|
"quotaStatus": "VALID"
|
|
}
|
|
]
|
|
},
|
|
"success": true
|
|
}
|
|
}
|
|
}
|
|
}
|