@@ -50,8 +50,26 @@ const EXPECTED_FEATURED_MODELS = [
5050 } ,
5151] as const ;
5252
53- const EXPECTED_BUNDLED_MODELS = [
54- ...EXPECTED_FEATURED_MODELS ,
53+ const EXPECTED_DEPRECATED_MODELS = [
54+ {
55+ id : "moonshotai/kimi-k2.5" ,
56+ name : "Kimi K2.5" ,
57+ contextWindow : 262_144 ,
58+ maxTokens : 8_192 ,
59+ } ,
60+ {
61+ id : "z-ai/glm-5.1" ,
62+ name : "GLM 5.1" ,
63+ contextWindow : 202_752 ,
64+ maxTokens : 8_192 ,
65+ } ,
66+ {
67+ id : "minimaxai/minimax-m2.5" ,
68+ name : "MiniMax M2.5" ,
69+ contextWindow : 196_608 ,
70+ maxTokens : 8_192 ,
71+ } ,
72+ { id : "z-ai/glm5" , name : "GLM-5" , contextWindow : 202_752 , maxTokens : 8_192 } ,
5573 {
5674 id : "minimaxai/minimax-m2.7" ,
5775 name : "Minimax M2.7" ,
@@ -60,6 +78,11 @@ const EXPECTED_BUNDLED_MODELS = [
6078 } ,
6179] as const ;
6280
81+ const EXPECTED_BUNDLED_MODELS = [
82+ ...EXPECTED_FEATURED_MODELS ,
83+ ...EXPECTED_DEPRECATED_MODELS ,
84+ ] as const ;
85+
6386const ssrfRuntimeMocks = vi . hoisted ( ( ) => ( {
6487 fetchWithSsrFGuard : vi . fn ( ) ,
6588 ssrfPolicyFromHttpBaseUrlAllowedHostname : vi . fn ( ( baseUrl : string ) => ( {
@@ -118,11 +141,17 @@ describe("nvidia provider catalog", () => {
118141 id : "nvidia/nemotron-3-super-120b-a12b" ,
119142 contextWindow : 1_000_000 ,
120143 } ) ;
121- expect ( manifest . modelCatalog . providers . nvidia . models . at ( - 1 ) ) . toMatchObject ( {
122- id : "minimaxai/minimax-m2.7" ,
123- status : "deprecated" ,
124- replacedBy : "minimaxai/minimax-m3" ,
125- } ) ;
144+ expect (
145+ manifest . modelCatalog . providers . nvidia . models
146+ . filter ( ( model ) => "status" in model && model . status === "deprecated" )
147+ . map ( ( model ) => ( { id : model . id , replacedBy : model . replacedBy } ) ) ,
148+ ) . toEqual ( [
149+ { id : "moonshotai/kimi-k2.5" , replacedBy : "moonshotai/kimi-k2.6" } ,
150+ { id : "z-ai/glm-5.1" , replacedBy : "z-ai/glm-5.2" } ,
151+ { id : "minimaxai/minimax-m2.5" , replacedBy : "minimaxai/minimax-m3" } ,
152+ { id : "z-ai/glm5" , replacedBy : "z-ai/glm-5.2" } ,
153+ { id : "minimaxai/minimax-m2.7" , replacedBy : "minimaxai/minimax-m3" } ,
154+ ] ) ;
126155 } ) ;
127156
128157 it ( "keeps deprecated exact-reference rows out of the selectable catalog" , ( ) => {
@@ -137,8 +166,8 @@ describe("nvidia provider catalog", () => {
137166 const release = mockFeaturedCatalogResponse ( {
138167 "featured-models" : [
139168 {
140- model : "z-ai/glm-5.1 " ,
141- "model-name" : "GLM 5.1 " ,
169+ model : "z-ai/glm-5.2 " ,
170+ "model-name" : "GLM 5.2 " ,
142171 context : 202752 ,
143172 "max-output" : 8192 ,
144173 } ,
@@ -154,11 +183,11 @@ describe("nvidia provider catalog", () => {
154183 const provider = await buildLiveNvidiaProvider ( ) ;
155184
156185 expect ( provider . models . map ( ( model ) => model . id ) ) . toEqual ( [
157- "z-ai/glm-5.1 " ,
186+ "z-ai/glm-5.2 " ,
158187 "nvidia/nemotron-3-super-120b-a12b" ,
159188 ] ) ;
160189 expect ( provider . models [ 0 ] ) . toMatchObject ( {
161- name : "GLM 5.1 " ,
190+ name : "GLM 5.2 " ,
162191 contextWindow : 202752 ,
163192 maxTokens : 8192 ,
164193 compat : { requiresStringContent : true } ,
@@ -190,8 +219,8 @@ describe("nvidia provider catalog", () => {
190219 mockFeaturedCatalogResponse ( {
191220 "featured-models" : [
192221 {
193- model : "z-ai/glm-5.1 " ,
194- "model-name" : "GLM 5.1 " ,
222+ model : "z-ai/glm-5.2 " ,
223+ "model-name" : "GLM 5.2 " ,
195224 context : 202752 ,
196225 "max-output" : 8192 ,
197226 } ,
@@ -207,11 +236,36 @@ describe("nvidia provider catalog", () => {
207236 const provider = await buildSelectableLiveNvidiaProvider ( ) ;
208237
209238 expect ( provider . models . map ( ( model ) => model . id ) ) . toEqual ( [
210- "z-ai/glm-5.1 " ,
239+ "z-ai/glm-5.2 " ,
211240 "nvidia/nemotron-3-super-120b-a12b" ,
212241 ] ) ;
213242 } ) ;
214243
244+ it ( "keeps every deprecated exact-reference row out of live catalogs" , async ( ) => {
245+ mockFeaturedCatalogResponse ( {
246+ "featured-models" : [
247+ {
248+ model : "minimaxai/minimax-m3" ,
249+ "model-name" : "Minimax M3" ,
250+ context : 196608 ,
251+ "max-output" : 8192 ,
252+ } ,
253+ ...EXPECTED_DEPRECATED_MODELS . map ( ( model ) => ( {
254+ model : model . id ,
255+ "model-name" : model . name ,
256+ context : model . contextWindow ,
257+ "max-output" : model . maxTokens ,
258+ } ) ) ,
259+ ] ,
260+ } ) ;
261+
262+ const live = await buildLiveNvidiaProvider ( ) ;
263+ const selectableLive = await buildSelectableLiveNvidiaProvider ( ) ;
264+
265+ expect ( live . models . map ( ( model ) => model . id ) ) . toEqual ( [ "minimaxai/minimax-m3" ] ) ;
266+ expect ( selectableLive . models . map ( ( model ) => model . id ) ) . toEqual ( [ "minimaxai/minimax-m3" ] ) ;
267+ } ) ;
268+
215269 it ( "maps current featured feed metadata for MiniMax, DeepSeek, and Qwen" , async ( ) => {
216270 mockFeaturedCatalogResponse ( {
217271 "featured-models" : [
@@ -321,8 +375,8 @@ describe("nvidia provider catalog", () => {
321375 mockFeaturedCatalogResponse ( {
322376 "featured-models" : [
323377 {
324- model : "z-ai/glm-5.1 " ,
325- "model-name" : "GLM 5.1 " ,
378+ model : "z-ai/glm-5.2 " ,
379+ "model-name" : "GLM 5.2 " ,
326380 context : 202752 ,
327381 "max-output" : 8192 ,
328382 } ,
@@ -333,7 +387,7 @@ describe("nvidia provider catalog", () => {
333387 const second = await buildLiveNvidiaProvider ( ) ;
334388
335389 expect ( first . models . map ( ( model ) => model . id ) ) . toEqual ( [ "minimaxai/minimax-m3" ] ) ;
336- expect ( second . models . map ( ( model ) => model . id ) ) . toEqual ( [ "z-ai/glm-5.1 " ] ) ;
390+ expect ( second . models . map ( ( model ) => model . id ) ) . toEqual ( [ "z-ai/glm-5.2 " ] ) ;
337391 expect ( ssrfRuntimeMocks . fetchWithSsrFGuard ) . toHaveBeenCalledTimes ( 2 ) ;
338392 } ) ;
339393
@@ -351,8 +405,8 @@ describe("nvidia provider catalog", () => {
351405 mockFeaturedCatalogResponse ( {
352406 "featured-models" : [
353407 {
354- model : "z-ai/glm-5.1 " ,
355- "model-name" : "GLM 5.1 " ,
408+ model : "z-ai/glm-5.2 " ,
409+ "model-name" : "GLM 5.2 " ,
356410 context : 202752 ,
357411 "max-output" : 8192 ,
358412 } ,
@@ -365,7 +419,7 @@ describe("nvidia provider catalog", () => {
365419 expect ( first . models . map ( ( model ) => model . id ) ) . toEqual (
366420 EXPECTED_FEATURED_MODELS . map ( ( model ) => model . id ) ,
367421 ) ;
368- expect ( second . models . map ( ( model ) => model . id ) ) . toEqual ( [ "z-ai/glm-5.1 " ] ) ;
422+ expect ( second . models . map ( ( model ) => model . id ) ) . toEqual ( [ "z-ai/glm-5.2 " ] ) ;
369423 expect ( ssrfRuntimeMocks . fetchWithSsrFGuard ) . toHaveBeenCalledTimes ( 2 ) ;
370424 } ) ;
371425
0 commit comments