Skip to content

Commit 7f28257

Browse files
committed
fix: add missing vllm icon from model providers
1 parent ccdb7c7 commit 7f28257

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const mockVllmIcon = jest.fn();
2+
3+
jest.mock("@/icons/vLLM", () => ({
4+
VllmIcon: mockVllmIcon,
5+
}));
6+
7+
import { lazyIconsMapping } from "../lazyIconImports";
8+
9+
describe("lazyIconsMapping", () => {
10+
it("loads the vLLM provider icon", async () => {
11+
const { default: icon } = await lazyIconsMapping.vLLM();
12+
13+
expect(icon).toBe(mockVllmIcon);
14+
});
15+
});

src/frontend/src/icons/lazyIconImports.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ export const lazyIconsMapping = {
491491
import("@/icons/Upstash").then((mod) => ({ default: mod.UpstashSvgIcon })),
492492
Vectara: () =>
493493
import("@/icons/VectaraIcon").then((mod) => ({ default: mod.VectaraIcon })),
494+
vLLM: () => import("@/icons/vLLM").then((mod) => ({ default: mod.VllmIcon })),
494495
VectorStores: () =>
495496
import("@/icons/vectorstores").then((mod) => ({
496497
default: mod.VectorStoresIcon,

0 commit comments

Comments
 (0)