Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 20, 2024
1 parent e7c52ac commit 7933f65
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions web/src/app/admin/configuration/llm/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ export const getProviderIcon = (providerName: string, modelName?: string) => {
}
if (modelName?.toLowerCase().includes("phi")) {
return MicrosoftIconSVG;
}
}
if (modelName?.toLowerCase().includes("mistral")) {
return MistralIcon;
}
}
if (modelName?.toLowerCase().includes("llama")) {
return MetaIcon;
}
}
if (modelName?.toLowerCase().includes("gemini")) {
return GeminiIcon;
}
Expand Down
8 changes: 6 additions & 2 deletions web/src/components/icons/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1121,12 +1121,16 @@ export const MetaIcon = ({
export const MicrosoftIconSVG = ({
size = 16,
className = defaultTailwindCSS,
}: IconProps) => <LogoIcon size={size} className={className} src={microsoftSVG} />;
}: IconProps) => (
<LogoIcon size={size} className={className} src={microsoftSVG} />
);

export const MistralIcon = ({
size = 16,
className = defaultTailwindCSS,
}: IconProps) => <LogoIcon size={size} className={className} src={mistralSVG} />;
}: IconProps) => (
<LogoIcon size={size} className={className} src={mistralSVG} />
);

export const VoyageIcon = ({
size = 16,
Expand Down
2 changes: 1 addition & 1 deletion web/src/lib/llm/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const MODEL_NAMES_SUPPORTING_IMAGE_INPUT = [
"amazon.nova-pro@v1",
// meta models
"llama-3.2-90b-vision-instruct",
"llama-3.2-11b-vision-instruct"
"llama-3.2-11b-vision-instruct",
];

export function checkLLMSupportsImageInput(model: string) {
Expand Down

0 comments on commit 7933f65

Please sign in to comment.