Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ml/imf/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/imf.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
})
Expand Down Expand Up @@ -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/,
)
})
})
Expand Down
Loading