8000 💄 style: add gemma model logo for ollama (#1369) · lobehub/lobe-chat@e2fb3a3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit e2fb3a3

Browse files
authored
💄 style: add gemma model logo for ollama (#1369)
1 parent 4bbb773 commit e2fb3a3

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"@icons-pack/react-simple-icons": "^9",
8383
"@lobehub/chat-plugin-sdk": "latest",
8484
"@lobehub/chat-plugins-gateway": "latest",
85-
"@lobehub/icons": "^1.11.1",
85+
"@lobehub/icons": "^1.11.2",
8686
"@lobehub/tts": "latest",
8787
"@lobehub/ui": "^1.129.2",
8888
"@vercel/analytics": "^1",

‎src/components/ModelIcon/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Baichuan,
55
ChatGLM,
66
Gemini,
7+
Gemma,
78
Meta,
89
Minimax,
910
Mistral,
@@ -29,6 +30,7 @@ const ModelIcon = memo<ModelProviderIconProps>(({ model, size = 12 }) => {
2930
if (model.includes('titan')) return <Aws.Avatar size={size} />;
3031
if (model.includes('llama')) return <Meta.Avatar size={size} />;
3132
if (model.includes('gemini')) return <Gemini.Avatar size={size} />;
33+
if (model.includes('gemma')) return <Gemma.Avatar size={size} />;
3234
if (model.includes('qwen')) return <Tongyi.Avatar background={Tongyi.colorPrimary} size={size} />;
3335
if (model.includes('minmax')) return <Minimax.Avatar size={size} />;
3436
if (model.includes('moonshot')) return <Moonshot.Avatar size={size} />;

‎src/components/ModelTag/ModelIcon.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
Baichuan,
55
ChatGLM,
66
Gemini,
7+
Gemma,
78
Meta,
89
Minimax,
910
Mistral,
@@ -28,6 +29,7 @@ const ModelIcon = memo<ModelIconProps>(({ model, size = 12 }) => {
2829
if (model.includes('titan')) return <Aws size={size} />;
2930
if (model.includes('llama')) return <Meta size={size} />;
3031
if (model.includes('gemini')) return <Gemini size={size} />;
32+
if (model.includes('gemma')) return <Gemma.Simple size={size} />;
3133
if (model.includes('moonshot')) return <Moonshot size={size} />;
3234
if (model.includes('qwen')) return <Tongyi size={size} />;
3335
if (model.includes('minmax')) return <Minimax size={size} />;

‎src/config/modelProviders/ollama.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@ import { ModelProviderCard } from '@/types/llm';
22

33
const Ollama: ModelProviderCard = {
44
chatModels: [
5+
{
6+
displayName: 'Gemma 7B',
7+
functionCall: false,
8+
id: 'gemma:7b',
9+
tokens: 4000,
10+
vision: false,
11+
},
12+
{
13+
displayName: 'Gemma 2B',
14+
functionCall: false,
15+
id: 'gemma',
16+
tokens: 4000,
17+
vision: false,
18+
},
19+
{
20+
displayName: 'Llama2 Chat 13B',
21+
functionCall: false,
22+
hidden: true,
23+
id: 'llama2:13b',
24+
tokens: 4000,
25+
vision: false,
26+
},
527
{
628
displayName: 'Llama2 Chat 7B',
729
functionCall: false,

0 commit comments

Comments
 (0)
0