Skip to content

Commit

Permalink
💄 style(ollama): Phi3 Instruct models and its model icons (lobehub#2254)
Browse files Browse the repository at this point in the history
  • Loading branch information
MapleEve authored Apr 28, 2024
1 parent e5cc179 commit c9b55cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ModelIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const ModelIcon = memo<ModelProviderIconProps>(({ model: originModel, size = 12
return <Stability.Avatar size={size} />;

if (model.includes('wizardlm')) return <Azure.Avatar size={size} />;
if (model.includes('phi3')) return <Azure.Avatar size={size} />;
if (model.includes('firefly')) return <Adobe.Avatar size={size} />;
if (model.includes('jamba') ||
model.includes('j2-'))
Expand Down
1 change: 1 addition & 0 deletions src/components/ModelTag/ModelIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const ModelIcon = memo<ModelIconProps>(({ model, size = 12 }) => {
return <Stability size={size} />;

if (model.includes('wizardlm')) return <Azure size={size} />;
if (model.includes('phi3')) return <Azure size={size} />;
if (model.includes('firefly')) return <AdobeFirefly size={size} />;
if (model.includes('jamba') || model.includes('j2-')) return <Ai21 size={size} />;
});
Expand Down
6 changes: 6 additions & 0 deletions src/config/modelProviders/ollama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ const Ollama: ModelProviderCard = {
id: 'codellama:python',
tokens: 16_000,
},
{
displayName: 'Phi3-Instruct 3.8B',
enabled: true,
id: 'phi3:instruct',
tokens: 128_000,
},
{
displayName: 'Mistral',
enabled: true,
Expand Down

0 comments on commit c9b55cc

Please sign in to comment.