clean up
This commit is contained in:
parent
b2c89075db
commit
db3fc19004
2 changed files with 5 additions and 1 deletions
|
|
@ -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.",
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue