Skip to content

Commit

Permalink
fix: DeepSeek icon inverted in dark mode fix (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivyjeong13 authored Jan 9, 2025
1 parent 1fbcf3f commit c77a7b8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ export function ModelProviderIcon({
modelProvider: ModelProvider;
size?: "md" | "lg";
}) {
const ignoreDarkModeSet = new Set([
CommonModelProviderIds.AZURE_OPENAI,
CommonModelProviderIds.DEEPSEEK,
]);

return modelProvider.icon ? (
<img
src={modelProvider.icon}
alt={modelProvider.name}
className={cn({
"h-6 w-6": size === "md",
"h-16 w-16": size === "lg",
"dark:invert": modelProvider.id !== CommonModelProviderIds.AZURE_OPENAI,
"dark:invert": !ignoreDarkModeSet.has(modelProvider.id),
})}
/>
) : (
Expand Down

0 comments on commit c77a7b8

Please sign in to comment.