Skip to content

Commit

Permalink
✨ feat: Add LM Studio to ProviderIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Oct 29, 2024
1 parent 9723053 commit e310622
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/features/ProviderIcon/DefaultIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon } from '@lobehub/ui';
import { useTheme } from 'antd-style';
import { BrainCircuitIcon } from 'lucide-react';
import { Radar } from 'lucide-react';
import { CSSProperties, forwardRef } from 'react';

interface DefaultIconProps {
Expand All @@ -15,7 +15,7 @@ const DefaultIcon = forwardRef<any, DefaultIconProps>(({ color, size = 12, ...re
return (
<Icon
color={color || theme.colorTextDescription}
icon={BrainCircuitIcon}
icon={Radar}
ref={ref}
size={{ fontSize: size }}
{...rest}
Expand Down
2 changes: 2 additions & 0 deletions src/features/providerConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import Google from '@/Google';
import Groq from '@/Groq';
import HuggingFace from '@/HuggingFace';
import Hunyuan from '@/Hunyuan';
import LmStudio from '@/LmStudio';
import LobeHub from '@/LobeHub';
import Minimax from '@/Minimax';
import Mistral from '@/Mistral';
Expand Down Expand Up @@ -162,4 +163,5 @@ export const providerMappings: ProviderMapping[] = [
},
{ Icon: SenseNova, combineMultiple: 0.95, keywords: [ModelProvider.SenseNova] },
{ Icon: HuggingFace, combineMultiple: 1.16, keywords: [ModelProvider.HuggingFace] },
{ Icon: LmStudio, keywords: [ModelProvider.LmStudio] },
];
3 changes: 2 additions & 1 deletion src/features/providerEnum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export enum ModelProvider {
Groq = 'groq',
HuggingFace = 'huggingface',
Hunyuan = 'hunyuan',
LmStudio = 'lmstudio',
LobeHub = 'lobehub',
Minimax = 'minimax',
Mistral = 'mistral',
Expand All @@ -32,7 +33,7 @@ export enum ModelProvider {
Upstage = 'upstage',
Wenxin = 'wenxin',
ZeroOne = 'zeroone',
ZhiPu = 'zhipu'
ZhiPu = 'zhipu',
}

export type ModelProviderKey = Lowercase<keyof typeof ModelProvider>;

0 comments on commit e310622

Please sign in to comment.