File size: 562 Bytes
a070805 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import { describe, expect, it } from "vitest";
import { formatModelPillLabel } from "./format-model-name";
describe("formatModelPillLabel", () => {
it("keeps the pretty OpenHands label without a free suffix unless backend marks it free", () => {
expect(formatModelPillLabel("openhands/deepseek-v4-flash")).toBe(
"OpenHands DeepSeek V4 Flash",
);
expect(
formatModelPillLabel(
"openhands/deepseek-v4-flash",
new Set(["openhands/deepseek-v4-flash"]),
),
).toBe("OpenHands DeepSeek V4 Flash (free)");
});
});
|