@@ -2,7 +2,10 @@ import type { CodexAccountMode, OcxProviderConfig } from "../types";
22import { KIRO_MODELS , KIRO_MODEL_CONTEXT_WINDOWS , KIRO_MODEL_REASONING_EFFORTS } from "./kiro-models" ;
33import { ANTIGRAVITY_MODELS , ANTIGRAVITY_MODEL_CONTEXT_WINDOWS } from "./antigravity-models" ;
44import type { ProviderBaseUrlChoice } from "./base-url-choices" ;
5- import { QWEN_CLOUD_BASE_URL_CHOICES , QWEN_CLOUD_TOKEN_PLAN_BASE_URL } from "./base-url-choices" ;
5+ import {
6+ QWEN_CLOUD_BASE_URL_CHOICES , QWEN_CLOUD_TOKEN_PLAN_BASE_URL ,
7+ ALIBABA_INTL_BASE_URL_CHOICES , ALIBABA_INTL_TOKEN_PLAN_BASE_URL ,
8+ } from "./base-url-choices" ;
69import {
710 CURSOR_STATIC_MODELS ,
811 cursorModelContextWindows ,
@@ -199,6 +202,33 @@ const ALIBABA_TOKEN_PLAN_INPUT_MODALITIES: Record<string, string[]> = {
199202 "glm-5.2" : [ "text" ] ,
200203 "deepseek-v4-pro" : [ "text" ] ,
201204} ;
205+
206+ // 260721 Alibaba Token Plan International (ap-southeast-1 / Singapore).
207+ // Multi-vendor lineup distinct from Beijing — includes DeepSeek V4 flash, Kimi K2.7, MiniMax.
208+ // Evidence: https://www.alibabacloud.com/help/en/model-studio/token-plan-overview
209+ const ALIBABA_INTL_TOKEN_PLAN_MODELS = [
210+ "qwen3.7-max" , "qwen3.7-plus" , "qwen3.6-plus" , "qwen3.6-flash" ,
211+ "deepseek-v4-pro" , "deepseek-v4-flash" , "deepseek-v3.2" ,
212+ "kimi-k2.7-code" ,
213+ "glm-5.2" ,
214+ "MiniMax-M2.5" ,
215+ ] ;
216+ const ALIBABA_INTL_TOKEN_PLAN_QWEN_MODELS = [
217+ "qwen3.7-max" , "qwen3.7-plus" , "qwen3.6-plus" , "qwen3.6-flash" ,
218+ ] ;
219+ const ALIBABA_INTL_TOKEN_PLAN_INPUT_MODALITIES : Record < string , string [ ] > = {
220+ "qwen3.7-max" : [ "text" ] ,
221+ "qwen3.7-plus" : [ "text" , "image" ] ,
222+ "qwen3.6-plus" : [ "text" , "image" ] ,
223+ "qwen3.6-flash" : [ "text" , "image" ] ,
224+ "deepseek-v4-pro" : [ "text" ] ,
225+ "deepseek-v4-flash" : [ "text" ] ,
226+ "deepseek-v3.2" : [ "text" ] ,
227+ "kimi-k2.7-code" : [ "text" ] ,
228+ "glm-5.2" : [ "text" ] ,
229+ "MiniMax-M2.5" : [ "text" ] ,
230+ } ;
231+
202232// 260717 Kimi K3: the subscription endpoint uses one upstream id (`k3`) for both
203233// entitlement tiers. Bare `k3` advertises the Moderato 256K ceiling; the local `[1m]`
204234// alias advertises Allegretto's 1M ceiling and is stripped before the upstream request.
@@ -741,6 +771,35 @@ export const PROVIDER_REGISTRY: readonly ProviderRegistryEntry[] = [
741771 thinkingBudgetModels : ALIBABA_TOKEN_PLAN_QWEN_MODELS ,
742772 preserveReasoningContentModels : [ "glm-5.2" , "deepseek-v4-pro" , "qwen3.8-max-preview" ] ,
743773 } ,
774+ {
775+ id : "alibaba-token-plan-intl" ,
776+ label : "Alibaba Token Plan (International)" ,
777+ baseUrl : ALIBABA_INTL_TOKEN_PLAN_BASE_URL ,
778+ adapter : "openai-chat" ,
779+ authKind : "key" ,
780+ allowBaseUrlOverride : true ,
781+ baseUrlChoices : ALIBABA_INTL_BASE_URL_CHOICES ,
782+ dashboardUrl : "https://modelstudio.console.alibabacloud.com/?tab=api#/api" ,
783+ defaultModel : "qwen3.7-max" ,
784+ models : ALIBABA_INTL_TOKEN_PLAN_MODELS ,
785+ liveModels : false ,
786+ note : "Token Plan Team Edition · Singapore (ap-southeast-1)" ,
787+ modelInputModalities : ALIBABA_INTL_TOKEN_PLAN_INPUT_MODALITIES ,
788+ modelContextWindows : { "deepseek-v4-pro" : 1_000_000 , "deepseek-v4-flash" : 1_000_000 , "glm-5.2" : 1_000_000 } ,
789+ modelReasoningEfforts : {
790+ ...Object . fromEntries ( ALIBABA_INTL_TOKEN_PLAN_QWEN_MODELS . map ( id => [ id , THINKING_BUDGET_EFFORTS ] ) ) ,
791+ "glm-5.2" : ZAI_GLM_52_REASONING_EFFORTS ,
792+ "deepseek-v4-pro" : DEEPSEEK_THINKING_EFFORTS ,
793+ "deepseek-v4-flash" : DEEPSEEK_THINKING_EFFORTS ,
794+ } ,
795+ modelReasoningEffortMap : {
796+ "deepseek-v4-pro" : DEEPSEEK_THINKING_REASONING_MAP ,
797+ "deepseek-v4-flash" : DEEPSEEK_THINKING_REASONING_MAP ,
798+ } ,
799+ thinkingBudgetModels : ALIBABA_INTL_TOKEN_PLAN_QWEN_MODELS ,
800+ preserveReasoningContentModels : [ "glm-5.2" , "deepseek-v4-pro" , "deepseek-v4-flash" , "qwen3.7-max" ] ,
801+ noVisionModels : [ "deepseek-v4-pro" , "deepseek-v4-flash" , "deepseek-v3.2" , "kimi-k2.7-code" , "glm-5.2" , "MiniMax-M2.5" , "qwen3.7-max" ] ,
802+ } ,
744803 // NEEDS_HUMAN 2026-07-10: kept for config compatibility, but this is a dashboard URL,
745804 // no /models endpoint is documented, and tools are silently ignored upstream per docs.parallel.ai.
746805 // Evidence: devlog/_plan/260710_provider_hardening/003_research_aggregators.md.
0 commit comments