From eb643b7c8cb8728d40f6d24ce7fdda50d5ddcf67 Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Sat, 26 Oct 2024 23:41:00 +0530 Subject: [PATCH] Fix: Update placeholder text for model input The placeholder text for the model input was previously incorrect. This commit updates the placeholder to reflect the expected format for model names. --- src/components/Option/Models/AddOllamaModelModal.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Option/Models/AddOllamaModelModal.tsx b/src/components/Option/Models/AddOllamaModelModal.tsx index 7ca2972..255bc9c 100644 --- a/src/components/Option/Models/AddOllamaModelModal.tsx +++ b/src/components/Option/Models/AddOllamaModelModal.tsx @@ -20,6 +20,7 @@ export const AddOllamaModelModal: React.FC = ({ open, setOpen }) => { }) const pullModel = async (modelName: string) => { + modelName.replaceAll("ollama pull", "").replaceAll("ollama run", "").trim() notification.info({ message: t("manageModels.notification.pullModel"), description: t("manageModels.notification.pullModelDescription", { @@ -52,7 +53,7 @@ export const AddOllamaModelModal: React.FC = ({ open, setOpen }) => {