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:
@@ -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" },
|
||||
],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user