From db3fc19004da7546d105e220764a82aac5904b59 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Sun, 24 Nov 2024 21:36:24 -0800 Subject: [PATCH] clean up --- core/llm/llms/Ollama.ts | 4 +++- gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index a1b691ec2..642f8bcc5 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -398,7 +398,9 @@ class Ollama extends BaseLLM { if (response.ok) { return data.models.map((model: any) => model.name); } else { - throw new Error("Ollama is not running"); + throw new Error( + "Failed to list Ollama models. Make sure Ollama is running.", + ); } } } diff --git a/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx b/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx index cf201843c..06a93bc3b 100644 --- a/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx +++ b/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx @@ -61,6 +61,8 @@ function OnboardingLocalTab() { title: ONBOARDING_LOCAL_MODEL_TITLE, }); if (result.status === "success") { + // TODO - temporary fix, see notes + // https://github.com/continuedev/continue/pull/3059 if (Array.isArray(result.content)) { setDownloadedOllamaModels(result.content); setIsOllamaConnected(true);