Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(ai): add visual support for OpenRouter and DeepSeek providers

Steven Enamakelc41f592df2bc
diff --git a/app/src/components/settings/panels/ai/ProviderListRow.tsx b/app/src/components/settings/panels/ai/ProviderListRow.tsx
index 772069935b..9af93f0034 100644
--- a/app/src/components/settings/panels/ai/ProviderListRow.tsx
+++ b/app/src/components/settings/panels/ai/ProviderListRow.tsx
@@ -84,6 +84,8 @@ const PROVIDER_SWATCH_TONES: Record<string, string> = {
xai: 'bg-black text-white ring-white/30',
zai: 'bg-[#FF6A00]/10 text-[#FF6A00] ring-[#FF6A00]/35',
ollama: 'bg-black text-white ring-white/30',
+ openrouter: 'bg-[#7624F4]/10 text-[#7624F4] ring-[#7624F4]/35',
+ deepseek: 'bg-[#4D6BFE]/10 text-[#4D6BFE] ring-[#4D6BFE]/35',
};
/**
diff --git a/app/src/components/settings/panels/ai/providerIcons.tsx b/app/src/components/settings/panels/ai/providerIcons.tsx
index 7f4389dfc5..b11bce465a 100644
--- a/app/src/components/settings/panels/ai/providerIcons.tsx
+++ b/app/src/components/settings/panels/ai/providerIcons.tsx
@@ -18,6 +18,8 @@ import { createElement, type ReactElement } from 'react';
import type { IconType } from 'react-icons';
import { cn } from '../../../../lib/cn';
+import deepseekLogo from '../../../../assets/provider-icons/deepseek.svg';
+import openrouterLogo from '../../../../assets/provider-icons/openrouter.svg';
import {
SiAlibabacloud,
SiAnthropic,
@@ -56,6 +58,12 @@ const PROVIDER_ICONS: Record<string, IconType> = {
ollama: SiOllama,
};
+/** Locally bundled marks for providers absent from the installed icon set. */
+const PROVIDER_ASSETS: Record<string, string> = {
+ openrouter: openrouterLogo,
+ deepseek: deepseekLogo,
+};
+
/** Brand colour treatment for marks that appear inside neutral provider swatches. */
const PROVIDER_ICON_COLORS: Record<string, string> = {
openai: 'text-white',
@@ -83,10 +91,12 @@ const PROVIDER_ICON_COLORS: Record<string, string> = {
*/
export const providerIcon = (slug: string, className: string): ReactElement | null => {
const icon = PROVIDER_ICONS[slug];
- return icon ? createElement(icon, { className: cn(className, PROVIDER_ICON_COLORS[slug]) }) : null;
+ if (icon) return createElement(icon, { className: cn(className, PROVIDER_ICON_COLORS[slug]) });
+ const asset = PROVIDER_ASSETS[slug];
+ return asset ? <img src={asset} alt="" aria-hidden className={cn(className, 'object-contain')} /> : null;
};
/** Slugs with a mark — exported for the coverage test, not for rendering. */
-export const PROVIDER_ICON_SLUGS = Object.keys(PROVIDER_ICONS);
+export const PROVIDER_ICON_SLUGS = [...Object.keys(PROVIDER_ICONS), ...Object.keys(PROVIDER_ASSETS)];
export default providerIcon;