feat(dashboard): add fireworksai and qwen-ai provider id aliases
Two more brand-id spellings observed in the wild that previously fell through to the generic Cpu glyph: fireworksai → FireworksIcon (joins fireworks / fireworks-ai) qwen-ai → QwenIcon (joins qwen / qwen-coder / alibaba / tongyi) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -571,6 +571,7 @@ const providerConfig: Record<
|
||||
"opencode-go": { component: OpencodeIcon, color: "var(--provider-opencode)", label: "Opencode (Go)" },
|
||||
|
||||
qwen: { component: QwenIcon, color: "var(--provider-qwen)" },
|
||||
"qwen-ai": { component: QwenIcon, color: "var(--provider-qwen)", label: "Qwen" },
|
||||
"qwen-coder": { component: QwenIcon, color: "var(--provider-qwen)", label: "Qwen Coder" },
|
||||
alibaba: { component: QwenIcon, color: "var(--provider-qwen)", label: "Qwen" },
|
||||
tongyi: { component: QwenIcon, color: "var(--provider-qwen)", label: "Qwen" },
|
||||
@@ -591,6 +592,7 @@ const providerConfig: Record<
|
||||
|
||||
fireworks: { component: FireworksIcon, color: "var(--provider-fireworks)", label: "Fireworks AI" },
|
||||
"fireworks-ai": { component: FireworksIcon, color: "var(--provider-fireworks)", label: "Fireworks AI" },
|
||||
fireworksai: { component: FireworksIcon, color: "var(--provider-fireworks)", label: "Fireworks AI" },
|
||||
|
||||
cerebras: { component: CerebrasIcon, color: "var(--provider-cerebras)" },
|
||||
|
||||
|
||||
@@ -508,7 +508,7 @@ describe("ProviderIcon", () => {
|
||||
// and additional Gemini-mapped Google product aliases.
|
||||
|
||||
it("renders Qwen icon for qwen and its aliases", () => {
|
||||
for (const provider of ["qwen", "qwen-coder", "alibaba", "tongyi"]) {
|
||||
for (const provider of ["qwen", "qwen-ai", "qwen-coder", "alibaba", "tongyi"]) {
|
||||
const { unmount } = render(<ProviderIcon provider={provider} />);
|
||||
expect(screen.getByTestId("qwen-icon")).toBeInTheDocument();
|
||||
unmount();
|
||||
@@ -552,8 +552,8 @@ describe("ProviderIcon", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("renders Fireworks icon for fireworks and fireworks-ai", () => {
|
||||
for (const provider of ["fireworks", "fireworks-ai"]) {
|
||||
it("renders Fireworks icon for fireworks, fireworks-ai, and fireworksai", () => {
|
||||
for (const provider of ["fireworks", "fireworks-ai", "fireworksai"]) {
|
||||
const { unmount } = render(<ProviderIcon provider={provider} />);
|
||||
expect(screen.getByTestId("fireworks-icon")).toBeInTheDocument();
|
||||
expect(screen.getByLabelText("Fireworks AI")).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user