This commit is contained in:
Dallin Romney 2024-11-24 21:36:24 -08:00
parent b2c89075db
commit db3fc19004
2 changed files with 5 additions and 1 deletions

View file

@ -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.",
);
}
}
}

View file

@ -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);