Skip to content

Commit

Permalink
💄 style: add gemma model logo for ollama (lobehub#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Feb 23, 2024
1 parent 4bbb773 commit e2fb3a3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@icons-pack/react-simple-icons": "^9",
"@lobehub/chat-plugin-sdk": "latest",
"@lobehub/chat-plugins-gateway": "latest",
"@lobehub/icons": "^1.11.1",
"@lobehub/icons": "^1.11.2",
"@lobehub/tts": "latest",
"@lobehub/ui": "^1.129.2",
"@vercel/analytics": "^1",
Expand Down
2 changes: 2 additions & 0 deletions src/components/ModelIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
Baichuan,
ChatGLM,
Gemini,
Gemma,
Meta,
Minimax,
Mistral,
Expand All @@ -29,6 +30,7 @@ const ModelIcon = memo<ModelProviderIconProps>(({ model, size = 12 }) => {
if (model.includes('titan')) return <Aws.Avatar size={size} />;
if (model.includes('llama')) return <Meta.Avatar size={size} />;
if (model.includes('gemini')) return <Gemini.Avatar size={size} />;
if (model.includes('gemma')) return <Gemma.Avatar size={size} />;
if (model.includes('qwen')) return <Tongyi.Avatar background={Tongyi.colorPrimary} size={size} />;
if (model.includes('minmax')) return <Minimax.Avatar size={size} />;
if (model.includes('moonshot')) return <Moonshot.Avatar size={size} />;
Expand Down
2 changes: 2 additions & 0 deletions src/components/ModelTag/ModelIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
Baichuan,
ChatGLM,
Gemini,
Gemma,
Meta,
Minimax,
Mistral,
Expand All @@ -28,6 +29,7 @@ const ModelIcon = memo<ModelIconProps>(({ model, size = 12 }) => {
if (model.includes('titan')) return <Aws size={size} />;
if (model.includes('llama')) return <Meta size={size} />;
if (model.includes('gemini')) return <Gemini size={size} />;
if (model.includes('gemma')) return <Gemma.Simple size={size} />;
if (model.includes('moonshot')) return <Moonshot size={size} />;
if (model.includes('qwen')) return <Tongyi size={size} />;
if (model.includes('minmax')) return <Minimax size={size} />;
Expand Down
22 changes: 22 additions & 0 deletions src/config/modelProviders/ollama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@ import { ModelProviderCard } from '@/types/llm';

const Ollama: ModelProviderCard = {
chatModels: [
{
displayName: 'Gemma 7B',
functionCall: false,
id: 'gemma:7b',
tokens: 4000,
vision: false,
},
{
displayName: 'Gemma 2B',
functionCall: false,
id: 'gemma',
tokens: 4000,
vision: false,
},
{
displayName: 'Llama2 Chat 13B',
functionCall: false,
hidden: true,
id: 'llama2:13b',
tokens: 4000,
vision: false,
},
{
displayName: 'Llama2 Chat 7B',
functionCall: false,
Expand Down

0 comments on commit e2fb3a3

Please sign in to comment.