/** * Offline **floor** for the Alibaba Cloud Model Studio Token Plan (Personal * Edition) models, sourced from the official documentation at: * https://www.alibabacloud.com/help/en/model-studio/token-plan-personal-overview * * Source-of-truth precedence (live path wins): * 1. The curated overlay `packages/cli/data/providers.json` — provider * `alibaba-token-plan` — synced from the official doc + cached + bundled * offline by `DefaultModelsRegistry` (overlayUrl/overlayFile). Editing * that JSON and pushing updates every client without a code release; * this is the authoritative list whenever the registry overlay is wired * (the CLI path). * 2. This hardcoded table — the last-resort floor used where no overlay is * available (a standalone registry without the bundled file) and by the * CLI auth-menu login flow, which needs a synchronous id list. * * Keep this in lockstep with the `alibaba-token-plan` block in * `providers.json`; the drift-guard test * `packages/cli/tests/alibaba-token-plan-catalog-overlay-sync.test.ts` * asserts they agree. * * ─── Correction context: models.dev vs Token Plan ───────────────────── * The models.dev catalog (fetched by DefaultModelsRegistry) reports the * FULL Alibaba Cloud Model Studio model inventory — hundreds of models * across pay-per-use, legacy snapshots, Team Edition, and Personal Edition. * The Token Plan (Personal Edition) is an exact-string allowlist that * covers only **11 models** from 5 brands. The following models.dev * entries are **NOT in the Personal Edition** and must NOT appear in the * provider's model list: * * ❌ qwen3.6-plus Team Edition only * ❌ deepseek-v4-flash Team Edition only * ❌ deepseek-v3.2 Team Edition only * ❌ qwen-image-2.0 Team Edition only (Qwen image gen) * ❌ qwen-image-2.0-pro Team Edition only * ❌ kimi-k2.7-code Team Edition only (Moonshot AI) * ❌ kimi-k2.6 Team Edition only * ❌ kimi-k2.5 Team Edition only * ❌ glm-5.1 Team Edition only * ❌ glm-5 Team Edition only * ❌ MiniMax-M2.5 Team Edition only * ❌ qwen3-max Legacy pay-per-use (not in any Token Plan) * ❌ qwen3.5-plus / flash Legacy pay-per-use * ❌ qwen3-coder-plus Legacy pay-per-use * ❌ qwen-long 10M-token model, not in Token Plan * ❌ qwen3-math-plus Specialised model, not in Token Plan * ❌ qwen3-235b-a22b Open-weight, pay-per-use * ❌ wan2.7-t2v-turbo Different Wanx variant, verify availability * * See packages/cli/data/providers.json for the authoritative model * allowlist. * ────────────────────────────────────────────────────────────────────── */ export interface AlibabaTokenPlanModelMeta { /** The wire id sent to the backend (e.g. `qwen3.7-max`). */ id: string; /** Human-readable display name shown in pickers. */ name: string; /** One-line capability blurb. */ description: string; /** Capability tags — which modality/feature this model supports. */ capabilities: string[]; /** Context window in tokens (where applicable). */ contextWindow?: number; /** Max output tokens (where documented). */ maxOutput?: number; /** The recommended / latest model — tagged "(current)" in the official UI. */ current?: boolean; /** Explicit input modality declaration (e.g. image-conditioned video models). */ inputs?: ReadonlyArray<'text' | 'image'>; } /** * Token Plan Personal Edition models, newest-first. The first entry is the * recommended default (`current`). Order is significant: callers that need a * default model id use `ALIBABA_TOKEN_PLAN_MODELS[0]`. * * Corresponds to the "Supported models" table on: * https://www.alibabacloud.com/help/en/model-studio/token-plan-personal-overview * * Last verified: 2026-07-20 (official doc last updated Jul 19, 2026) */ export declare const ALIBABA_TOKEN_PLAN_MODELS: ReadonlyArray; /** Look up the canonical metadata for a Token Plan model id, or `undefined`. */ export declare function alibabaTokenPlanModelMeta(id: string): AlibabaTokenPlanModelMeta | undefined; //# sourceMappingURL=alibaba-token-plan-catalog.d.ts.map