From 69669424fb5a359c6b8290d5ff8ce5080c8bd30e Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Sun, 30 Aug 2026 16:17:32 +0200 Subject: [PATCH] chore: DEFAULT_INDEX_URL -> index-v2 (ara-diac-small-2.0 visible) --- src/ml/imf/registry.ts | 2 +- test/imf.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ml/imf/registry.ts b/src/ml/imf/registry.ts index a2e1600..4471e41 100644 --- a/src/ml/imf/registry.ts +++ b/src/ml/imf/registry.ts @@ -16,7 +16,7 @@ import { load as loadYaml } from "js-yaml" export const DEFAULT_INDEX_URL = - "https://github.com/interscript/interscript-ml/releases/download/index-v1/models-index.yaml" + "https://github.com/interscript/interscript-ml/releases/download/index-v2/models-index.yaml" export interface Part { url: string diff --git a/test/imf.test.ts b/test/imf.test.ts index f8efb7b..28012f5 100644 --- a/test/imf.test.ts +++ b/test/imf.test.ts @@ -256,7 +256,7 @@ describe("registry", () => { it("DEFAULT_INDEX_URL pins a GitHub Release asset, never raw", async () => { const { DEFAULT_INDEX_URL } = await import("../src/ml/imf/registry.js") expect(DEFAULT_INDEX_URL).toMatch( - /^https:\/\/github\.com\/interscript\/interscript-ml\/releases\/download\/index-v\d+\/models-index\.yaml$/, + /^https:\/\/github\.com\/interscript\/interscript-ml\/releases\/download\/index-v2\/models-index\.yaml$/, ) expect(DEFAULT_INDEX_URL).not.toMatch(/raw\.githubusercontent/) }) @@ -364,7 +364,7 @@ describe("registry", () => { expect(typeof imf!["resolve"]).toBe("function") expect(typeof imf!["IMFModel"]).toBe("function") expect(imf!["DEFAULT_INDEX_URL"]).toMatch( - /github\.com\/interscript\/interscript-ml\/releases\/download\/index-v\d+\/models-index\.yaml/, + /github\.com\/interscript\/interscript-ml\/releases\/download\/index-v2\/models-index\.yaml/, ) }) })