Skip to content

Commit 431c63f

Browse files
✨ feat: Add LM Studio
1 parent 97b7383 commit 431c63f

File tree

9 files changed

+216
-3
lines changed

9 files changed

+216
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Contributions, corrections & requests can be made on GitHub.
6161

6262
<!-- ICON LIST -->
6363

64-
| Model | Provider | Application |
65-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
66-
| ✅ [Ai21Labs (Jamba)](https://icons.lobehub.com/components/ai-21)<br/>✅ [Baichuan (百川)](https://icons.lobehub.com/components/baichuan)<br/>✅ [Claude](https://icons.lobehub.com/components/claude)<br/>✅ [Databricks (DBRX)](https://icons.lobehub.com/components/dbrx)<br/>✅ [DeepSeek](https://icons.lobehub.com/components/deep-seek)<br/>✅ [FishAudio (Bert)](https://icons.lobehub.com/components/fish-audio)<br/>✅ [Google (Gemini)](https://icons.lobehub.com/components/gemini)<br/>✅ [Google (Gemma)](https://icons.lobehub.com/components/gemma)<br/>✅ [Grok](https://icons.lobehub.com/components/grok)<br/>✅ [Hunyuan (腾讯混元)](https://icons.lobehub.com/components/hunyuan)<br/>✅ [LLaVA](https://icons.lobehub.com/components/l-la-va)<br/>✅ [Minimax](https://icons.lobehub.com/components/minimax)<br/>✅ [Mistral](https://icons.lobehub.com/components/mistral)<br/>✅ [OpenAI (DALL·E)](https://icons.lobehub.com/components/dalle)<br/>✅ [OpenChat](https://icons.lobehub.com/components/open-chat)<br/>✅ [RWKV](https://icons.lobehub.com/components/rwkv)<br/>✅ [Spark (讯飞星火)](https://icons.lobehub.com/components/spark)<br/>✅ [Tongyi (通义)](https://icons.lobehub.com/components/tongyi)<br/>✅ [Wenxin (文心)](https://icons.lobehub.com/components/wenxin)<br/>✅ [Yi (零一万物)](https://icons.lobehub.com/components/yi)<br/>✅ [Zhipu (ChatGLM)](https://icons.lobehub.com/components/chat-glm) | ✅ [01.AI (零一万物)](https://icons.lobehub.com/components/zero-one)<br/>✅ [Alibaba](https://icons.lobehub.com/components/alibaba)<br/>✅ [AntGroup](https://icons.lobehub.com/components/ant-group)<br/>✅ [Anthropic](https://icons.lobehub.com/components/anthropic)<br/>✅ [AWS](https://icons.lobehub.com/components/aws)<br/>✅ [AWS (Bedrock)](https://icons.lobehub.com/components/bedrock)<br/>✅ [Baidu](https://icons.lobehub.com/components/baidu)<br/>✅ [ByteDance](https://icons.lobehub.com/components/byte-dance)<br/>✅ [Cloudflare](https://icons.lobehub.com/components/cloudflare)<br/>✅ [Cloudflare (WorkersAI)](https://icons.lobehub.com/components/workers-ai)<br/>✅ [Cohere (Command)](https://icons.lobehub.com/components/cohere)<br/>✅ [Fireworks](https://icons.lobehub.com/components/fireworks)<br/>✅ [Google](https://icons.lobehub.com/components/google)<br/>✅ [Google(DeepMind)](https://icons.lobehub.com/components/deep-mind)<br/>✅ [Groq](https://icons.lobehub.com/components/groq)<br/>✅ [HuggingFace](https://icons.lobehub.com/components/hugging-face)<br/>✅ [Meta](https://icons.lobehub.com/components/meta)<br/>✅ [Microsoft (Azure)](https://icons.lobehub.com/components/azure)<br/>✅ [Moonshot (月之暗面)](https://icons.lobehub.com/components/moonshot)<br/>✅ [Ollama](https://icons.lobehub.com/components/ollama)<br/>✅ [OpenAI (ChatGPT)](https://icons.lobehub.com/components/open-ai)<br/>✅ [OpenRouter](https://icons.lobehub.com/components/open-router)<br/>✅ [Perplexity](https://icons.lobehub.com/components/perplexity)<br/>✅ [Replicate](https://icons.lobehub.com/components/replicate)<br/>✅ [Stability (StableDiffusion)](https://icons.lobehub.com/components/stability)<br/>✅ [Tencent](https://icons.lobehub.com/components/tencent)<br/>✅ [together.ai](https://icons.lobehub.com/components/together)<br/>✅ [Zeabur](https://icons.lobehub.com/components/zeabur)<br/>✅ [Zhipu (智谱)](https://icons.lobehub.com/components/zhipu) | ✅ [Adobe](https://icons.lobehub.com/components/adobe)<br/>✅ [Adobe (Firefly)](https://icons.lobehub.com/components/adobe-firefly)<br/>✅ [Automatic1111 (SD Webui)](https://icons.lobehub.com/components/automatic)<br/>✅ [Github](https://icons.lobehub.com/components/github)<br/>✅ [Github Copilot](https://icons.lobehub.com/components/github-copilot)<br/>✅ [Google (Colab)](https://icons.lobehub.com/components/colab)<br/>✅ [Langfuse](https://icons.lobehub.com/components/langfuse)<br/>✅ [Microsoft Copilot](https://icons.lobehub.com/components/copilot)<br/>✅ [Midjourney](https://icons.lobehub.com/components/midjourney)<br/>✅ [Nvidia (ChatWithRTX)](https://icons.lobehub.com/components/nvidia)<br/>✅ [Pollinations](https://icons.lobehub.com/components/pollinations)<br/>✅ [Qingyan (智谱清言)](https://icons.lobehub.com/components/qingyan)<br/>✅ [Suno](https://icons.lobehub.com/components/suno) |
64+
| Model | Provider | Application |
65+
| ----- | -------- | ----------- |
66+
| | | |
6767

6868
<!-- ICON LIST -->
6969

src/LmStudio/components/Avatar.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { memo } from 'react';
2+
3+
import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
4+
5+
import { COLOR_GRADIENT, TITLE } from '../style';
6+
import Mono from './Mono';
7+
8+
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
9+
10+
const Avatar = memo<AvatarProps>(({ background, ...rest }) => {
11+
return (
12+
<IconAvatar
13+
Icon={Mono}
14+
aria-label={TITLE}
15+
background={background || COLOR_GRADIENT}
16+
color={'#fff'}
17+
{...rest}
18+
/>
19+
);
20+
});
21+
22+
export default Avatar;

src/LmStudio/components/Combine.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { memo } from 'react';
2+
3+
import IconCombine, { type IconCombineProps } from '@/IconCombine';
4+
5+
import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
6+
import Avatar from './Avatar';
7+
import Mono from './Mono';
8+
import Text from './Text';
9+
10+
export interface CombineProps extends Omit<IconCombineProps, 'Icon' | 'Text'> {
11+
type?: 'color' | 'mono';
12+
}
13+
const Combine = memo<CombineProps>(({ type = 'mono', ...rest }) => {
14+
const Icon = type === 'color' ? Avatar : Mono;
15+
16+
return (
17+
<IconCombine
18+
Icon={Icon}
19+
Text={Text}
20+
aria-label={TITLE}
21+
iconProps={type === 'color' ? { shape: 'square' } : {}}
22+
spaceMultiple={SPACE_MULTIPLE}
23+
textMultiple={TEXT_MULTIPLE}
24+
{...rest}
25+
/>
26+
);
27+
});
28+
29+
export default Combine;

src/LmStudio/components/Mono.tsx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { forwardRef } from 'react';
2+
3+
import type { IconType } from '@/types';
4+
5+
import { TITLE } from '../style';
6+
7+
const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => {
8+
return (
9+
<svg
10+
fill="currentColor"
11+
fillRule="evenodd"
12+
height={size}
13+
ref={ref}
14+
style={{ flex: 'none', lineHeight: 1, ...style }}
15+
viewBox="0 0 24 24"
16+
width={size}
17+
xmlns="http://www.w3.org/2000/svg"
18+
{...rest}
19+
>
20+
<title>{TITLE}</title>
21+
<path
22+
d="M2.84 2a1.273 1.273 0 100 2.547h14.107a1.273 1.273 0 100-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H22.04a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h14.106a1.274 1.274 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H15.38a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h14.106a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h9.698a1.273 1.273 0 100-2.547h-9.698z"
23+
fillOpacity=".3"
24+
></path>
25+
<path d="M2.84 2a1.273 1.273 0 100 2.547h10.287a1.274 1.274 0 000-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H18.22a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H11.56a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h5.78a1.273 1.273 0 100-2.547h-5.78z"></path>
26+
</svg>
27+
);
28+
});
29+
30+
export default Icon;

0 commit comments

Comments
 (0)