From 7933f6500b1427d0fd673e4fc9775509648915a2 Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Thu, 19 Dec 2024 18:51:48 -0800 Subject: [PATCH] nit --- web/src/app/admin/configuration/llm/interfaces.ts | 6 +++--- web/src/components/icons/icons.tsx | 8 ++++++-- web/src/lib/llm/utils.ts | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/web/src/app/admin/configuration/llm/interfaces.ts b/web/src/app/admin/configuration/llm/interfaces.ts index 1da0e2e983e..5b0dc73bac3 100644 --- a/web/src/app/admin/configuration/llm/interfaces.ts +++ b/web/src/app/admin/configuration/llm/interfaces.ts @@ -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; } diff --git a/web/src/components/icons/icons.tsx b/web/src/components/icons/icons.tsx index fe07617eeb9..6258b982916 100644 --- a/web/src/components/icons/icons.tsx +++ b/web/src/components/icons/icons.tsx @@ -1121,12 +1121,16 @@ export const MetaIcon = ({ export const MicrosoftIconSVG = ({ size = 16, className = defaultTailwindCSS, -}: IconProps) => ; +}: IconProps) => ( + +); export const MistralIcon = ({ size = 16, className = defaultTailwindCSS, -}: IconProps) => ; +}: IconProps) => ( + +); export const VoyageIcon = ({ size = 16, diff --git a/web/src/lib/llm/utils.ts b/web/src/lib/llm/utils.ts index 8e2ece1e89f..6fc1fc7a9f2 100644 --- a/web/src/lib/llm/utils.ts +++ b/web/src/lib/llm/utils.ts @@ -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) {