mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
Fix model test routing for image providers
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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",
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user