Skip to content

Commit ac37487

Browse files
committed
fix(nvidia): restore shipped compatibility rows
1 parent 7fcd602 commit ac37487

4 files changed

Lines changed: 178 additions & 22 deletions

File tree

‎docs/providers/nvidia.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ pickers.
110110
| `nvidia/deepseek-ai/deepseek-v4-pro` | DeepSeek V4 Pro | 262,144 | 16,384 |
111111
| `nvidia/qwen/qwen3.5-397b-a17b` | Qwen3.5 397B A17B | 262,144 | 16,384 |
112112

113-
`nvidia/minimaxai/minimax-m2.7` remains available by exact reference for
114-
existing configurations. New setups should use `nvidia/minimaxai/minimax-m3`.
113+
The full compatibility catalog also retains these shipped refs for existing
114+
configurations: `nvidia/moonshotai/kimi-k2.5`, `nvidia/z-ai/glm-5.1`,
115+
`nvidia/minimaxai/minimax-m2.5`, `nvidia/z-ai/glm5`, and
116+
`nvidia/minimaxai/minimax-m2.7`. They remain available by exact reference but
117+
never appear in onboarding or model pickers.
115118

116119
## Advanced configuration
117120

‎extensions/nvidia/onboard.test.ts‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,27 @@ describe("nvidia onboard", () => {
5353
"qwen/qwen3.5-397b-a17b",
5454
]);
5555
});
56+
57+
it("preserves an existing deprecated exact-reference model", () => {
58+
const provider = expectProviderOnboardMergedLegacyConfig({
59+
applyProviderConfig: applyNvidiaProviderConfig,
60+
providerId: "nvidia",
61+
providerApi: "openai-completions",
62+
baseUrl: "https://integrate.api.nvidia.com/v1",
63+
legacyApi: "openai-completions",
64+
legacyModelId: "moonshotai/kimi-k2.5",
65+
legacyModelName: "Kimi K2.5",
66+
});
67+
68+
expect(provider?.models.map((model) => model.id)).toEqual([
69+
"moonshotai/kimi-k2.5",
70+
"nvidia/nemotron-3-ultra-550b-a55b",
71+
"nvidia/nemotron-3-super-120b-a12b",
72+
"z-ai/glm-5.2",
73+
"moonshotai/kimi-k2.6",
74+
"minimaxai/minimax-m3",
75+
"deepseek-ai/deepseek-v4-pro",
76+
"qwen/qwen3.5-397b-a17b",
77+
]);
78+
});
5679
});

‎extensions/nvidia/openclaw.plugin.json‎

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,82 @@
138138
"requiresStringContent": true
139139
}
140140
},
141+
{
142+
"id": "moonshotai/kimi-k2.5",
143+
"name": "Kimi K2.5",
144+
"input": ["text"],
145+
"contextWindow": 262144,
146+
"maxTokens": 8192,
147+
"cost": {
148+
"input": 0,
149+
"output": 0,
150+
"cacheRead": 0,
151+
"cacheWrite": 0
152+
},
153+
"compat": {
154+
"requiresStringContent": true
155+
},
156+
"status": "deprecated",
157+
"statusReason": "Still available by exact reference; use moonshotai/kimi-k2.6 for new NVIDIA setups.",
158+
"replacedBy": "moonshotai/kimi-k2.6"
159+
},
160+
{
161+
"id": "z-ai/glm-5.1",
162+
"name": "GLM 5.1",
163+
"input": ["text"],
164+
"contextWindow": 202752,
165+
"maxTokens": 8192,
166+
"cost": {
167+
"input": 0,
168+
"output": 0,
169+
"cacheRead": 0,
170+
"cacheWrite": 0
171+
},
172+
"compat": {
173+
"requiresStringContent": true
174+
},
175+
"status": "deprecated",
176+
"statusReason": "Still available by exact reference; use z-ai/glm-5.2 for new NVIDIA setups.",
177+
"replacedBy": "z-ai/glm-5.2"
178+
},
179+
{
180+
"id": "minimaxai/minimax-m2.5",
181+
"name": "MiniMax M2.5",
182+
"input": ["text"],
183+
"contextWindow": 196608,
184+
"maxTokens": 8192,
185+
"cost": {
186+
"input": 0,
187+
"output": 0,
188+
"cacheRead": 0,
189+
"cacheWrite": 0
190+
},
191+
"compat": {
192+
"requiresStringContent": true
193+
},
194+
"status": "deprecated",
195+
"statusReason": "Still available by exact reference; use minimaxai/minimax-m3 for new NVIDIA setups.",
196+
"replacedBy": "minimaxai/minimax-m3"
197+
},
198+
{
199+
"id": "z-ai/glm5",
200+
"name": "GLM-5",
201+
"input": ["text"],
202+
"contextWindow": 202752,
203+
"maxTokens": 8192,
204+
"cost": {
205+
"input": 0,
206+
"output": 0,
207+
"cacheRead": 0,
208+
"cacheWrite": 0
209+
},
210+
"compat": {
211+
"requiresStringContent": true
212+
},
213+
"status": "deprecated",
214+
"statusReason": "Still available by exact reference; use z-ai/glm-5.2 for new NVIDIA setups.",
215+
"replacedBy": "z-ai/glm-5.2"
216+
},
141217
{
142218
"id": "minimaxai/minimax-m2.7",
143219
"name": "Minimax M2.7",

‎extensions/nvidia/provider-catalog.test.ts‎

Lines changed: 74 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
6386
const 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

Comments
 (0)