Files
decolua--9router/tests/unit/hf-model-routing.test.js
wehub-resource-sync 05fcd08057
Deploy GitBook to 9router.github.io / build-deploy (push) Failing after 2s
chore: import upstream snapshot with attribution
2026-07-13 12:21:01 +08:00

13 lines
424 B
JavaScript

import { describe, it, expect } from "vitest";
import { parseModel } from "../../open-sse/services/model.js";
describe("HuggingFace model alias parsing", () => {
it("resolves hf alias to huggingface provider", () => {
expect(parseModel("hf/black-forest-labs/FLUX.1-schnell")).toMatchObject({
provider: "huggingface",
model: "black-forest-labs/FLUX.1-schnell",
providerAlias: "hf",
});
});
});