Skip to content

When ollama is stopped, propose to start it, instead of downloading it #3318

Closed
@fbricon

Description

@fbricon

Validations

  • I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • I'm not able to find an open issue that requests the same enhancement

Problem

When ollama is stopped, you get this error message:

Screenshot 2024-12-09 at 14 47 51

which can be pretty confusing, since well, ollama is already downloaded/installed. We should have a way of starting it instead.

I have some (ASL2) code for checking ollama is installed and for starting it, that I can contribute. I need to do a bit of cleanup first.

Solution

  • if ollama is defined as local (check apiUrl in config.json), then check the output of ollama -v to see if it's installed

  • there are a few ways to start ollama, depending on the platform:

    • on Mac, run ollama list, will start ollama as a service
    • on Linux, run the ollama service if available, else fall back to running ollama serve
    • on Windows, AFAIK there's no way to run ollama as a service from CLI, so just do ollama serve

    So, if ollama is installed, then just replace the Download Ollama button with a Start Ollama one, hooked into the startup code.

Metadata

Metadata

Labels

area:configurationRelates to configuration optionskind:enhancementIndicates a new feature request, imrovement, or extensionpriority:mediumIndicates medium priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions