fix(catalog): excluded token plan embedding models

Filtered text-embedding model IDs from authoritative Alibaba Token Plan chat discovery.

Covered text-embedding-v4 alongside the existing media-only discovery fixtures.

Fixes #7391
This commit is contained in:
roboomp
2026-08-02 16:16:24 +00:00
parent 3224245e98
commit ac403dbb71
2 changed files with 8 additions and 1 deletions
@@ -2833,7 +2833,13 @@ export const ALIBABA_TOKEN_PLAN_STATIC_MODELS: readonly ModelSpec<"openai-comple
},
];
const ALIBABA_TOKEN_PLAN_NON_CHAT_MODEL_PREFIXES = ["happyhorse-", "qwen-audio-", "qwen-image-", "wan2.7-"] as const;
const ALIBABA_TOKEN_PLAN_NON_CHAT_MODEL_PREFIXES = [
"happyhorse-",
"qwen-audio-",
"qwen-image-",
"text-embedding-",
"wan2.7-",
] as const;
function isAlibabaTokenPlanChatModelId(id: string): boolean {
const normalized = id.trim().toLowerCase();
@@ -68,6 +68,7 @@ describe("QwenCloud Token Plan provider", () => {
{ id: "qwen-image-2.0-pro", owned_by: "qwencloud" },
{ id: "qwen-audio-3.0-tts-plus", owned_by: "qwencloud" },
{ id: "happyhorse-1.1-t2v", owned_by: "qwencloud" },
{ id: "text-embedding-v4", owned_by: "qwencloud" },
{ id: "wan2.7-image", owned_by: "qwencloud" },
],
}),