mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-14 19:02:17 +03:00
Validado em lote numa worktree combinada com #12524, #12538, #12277 e #12367 sobre o tip de release/v3.8.51: os quatro boardaram sem conflito (áreas disjuntas — zai-web, nvidia, clova, cursor/devin/fable). typecheck:core limpo, check:provider-consistency OK (272 entradas REGISTRY, 355 providers canônicos), check:known-symbols OK, e 305/305 nos testes tocados pelos quatro PRs. Os IDs de modelo adicionados foram conferidos individualmente. Obrigado, @backryun.
43 lines
1.5 KiB
TypeScript
43 lines
1.5 KiB
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
import { FREE_MODEL_BUDGETS } from "../../open-sse/config/freeModelCatalog.data.ts";
|
|
import reviewedLiveIds from "../../open-sse/config/nvidiaHostedModels.snapshot.json" with { type: "json" };
|
|
import { nvidiaProvider } from "../../open-sse/config/providers/registry/nvidia/index.ts";
|
|
|
|
const registryIds = new Set(nvidiaProvider.models.map((model) => model.id));
|
|
|
|
const documentedFreeIds = new Set(
|
|
FREE_MODEL_BUDGETS.filter((model) => model.provider === "nvidia").map((model) => model.modelId)
|
|
);
|
|
|
|
const reviewedIds = new Set(reviewedLiveIds);
|
|
|
|
test("NVIDIA static catalog metadata excludes superseded model ids", () => {
|
|
for (const modelId of [
|
|
"z-ai/glm-5.1",
|
|
"z-ai/glm-5.2",
|
|
"deepseek-ai/deepseek-v4-pro",
|
|
"deepseek-ai/deepseek-v4-flash",
|
|
"minimaxai/minimax-m2.7",
|
|
]) {
|
|
assert.ok(!registryIds.has(modelId), `${modelId} must not remain in the NVIDIA registry`);
|
|
assert.ok(
|
|
!reviewedIds.has(modelId),
|
|
`${modelId} must not remain in the reviewed NVIDIA hosted-model snapshot`
|
|
);
|
|
|
|
assert.ok(
|
|
!documentedFreeIds.has(modelId),
|
|
`${modelId} must not remain in the NVIDIA free-model catalog`
|
|
);
|
|
}
|
|
});
|
|
|
|
test("NVIDIA reviewed snapshot matches the registry and trial entries remain valid", () => {
|
|
assert.deepEqual([...reviewedIds], [...registryIds]);
|
|
for (const modelId of documentedFreeIds) {
|
|
assert.ok(registryIds.has(modelId), `${modelId} must exist in the NVIDIA hosted catalog`);
|
|
}
|
|
});
|