feat(ui): add SCX.ai to the dashboard provider list with logo

This commit is contained in:
bhuvan2134686 2026-07-27 16:51:18 +10:00
parent 912c7c7f42
commit 8f61073af8
3 changed files with 16 additions and 0 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

@ -62,6 +62,17 @@ describe("provider_info_helpers", () => {
expect(result.logo).toBe(providerLogoMap[Providers.Groq]);
});
it("should map scx-ai slug and SCX_AI enum key to the SCX.ai display name and logo", () => {
const fromSlug = getProviderLogoAndName("scx-ai");
expect(fromSlug.displayName).toBe(Providers.SCX_AI);
expect(fromSlug.logo).toBe(providerLogoMap[Providers.SCX_AI]);
expect(fromSlug.logo).toBeTruthy();
const fromEnumKey = getProviderLogoAndName("SCX_AI");
expect(fromEnumKey.displayName).toBe(Providers.SCX_AI);
expect(fromEnumKey.logo).toBe(providerLogoMap[Providers.SCX_AI]);
});
it("should map bedrock_mantle slug to Bedrock Mantle display name and logo", () => {
const result = getProviderLogoAndName("bedrock_mantle");
expect(result.displayName).toBe(Providers.BedrockMantle);

View file

@ -50,6 +50,7 @@ import replicateLogo from "../../public/assets/logos/replicate.svg";
import runwayLogo from "../../public/assets/logos/runway.png";
import sambanovaLogo from "../../public/assets/logos/sambanova.svg";
import sapLogo from "../../public/assets/logos/sap.png";
import scxAiLogo from "../../public/assets/logos/scx_ai.svg";
import snowflakeLogo from "../../public/assets/logos/snowflake.svg";
import sonioxLogo from "../../public/assets/logos/soniox.svg";
import togetheraiLogo from "../../public/assets/logos/togetherai.svg";
@ -151,6 +152,7 @@ export enum Providers {
SAGEMAKER_LEGACY = "Sagemaker",
Sambanova = "Sambanova",
SAP = "SAP Generative AI Hub",
SCX_AI = "SCX.ai",
Snowflake = "Snowflake",
Soniox = "Soniox",
TEXT_COMPLETION_CODESTRAL = "Text-Completion-Codestral",
@ -260,6 +262,7 @@ export const provider_map: Record<string, string> = {
SageMaker: "sagemaker_chat",
Sambanova: "sambanova",
SAP: "sap",
SCX_AI: "scx-ai",
Snowflake: "snowflake",
Soniox: "soniox",
TEXT_COMPLETION_CODESTRAL: "text-completion-codestral",
@ -351,6 +354,7 @@ export const providerLogoMap: Partial<Record<Providers, string>> = {
[Providers.SAGEMAKER_LEGACY]: bedrockLogo.src,
[Providers.Sambanova]: sambanovaLogo.src,
[Providers.SAP]: sapLogo.src,
[Providers.SCX_AI]: scxAiLogo.src,
[Providers.Snowflake]: snowflakeLogo.src,
[Providers.Soniox]: sonioxLogo.src,
[Providers.TEXT_COMPLETION_CODESTRAL]: mistralLogo.src,