continuedev / continuedev/continue

The extension finds the models, but cannot connect to them

Open
#4,677 1 comment 0 reactions 1 assignee View on GitHub

@Patrick-Erichsen is already working on this.

Since Mar 16, 2025.

area:configuration ide:vscode kind:bug needs-triage os:mac
Dominant language
TypeScript
Stars
36k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Before submitting your bug report
Relevant environment info
- OS: ubuntu 22.04
- Continue version: latest
- IDE version: 1.98.2
- Model: any
- config:
  
{
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text",
      "apiBase": "http://127.0.0.1:11434/"
  },
  "models": [
    {
      "title": "Qwen 2.5 Coder 32b",
      "model": "qwen2.5-coder:32b",
      "apiBase": "http://127.0.0.1:11434/",
      "provider": "ollama"
    }
  ],
...
Description

The extension can find the models with no problem:

Image

However, as soon as I pick any of them, and start chatting, I get this warning:

Image

And if I press "start ollama", I see that it tries to run open -a Ollama.app.

Now, the setting is the following:

  1. I'm running VScode from a Mac
  2. I'm connecting to a remote host via SSH
  3. Ollama is installed in the remote host (so say, if I open a terminal from that window, ollama list works fine)
To reproduce

not sure(?)

Log output
[Extension Host] Error: Unable to connect to local Ollama instance. Ollama may not be running.
    at customFetch2 (/Users/albertosinigaglia/.vscode/extensions/continue.continue-1.0.4-darwin-arm64/out/extension.js:122240:23)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at withExponentialBackoff (/Users/albertosinigaglia/.vscode/extensions/continue.continue-1.0.4-darwin-arm64/out/extension.js:118027:27)
    at Ollama2._streamChat (/Users/albertosinigaglia/.vscode/extensions/continue.continue-1.0.4-darwin-arm64/out/extension.js:130989:26)
    at Ollama2.streamChat (/Users/albertosinigaglia/.vscode/extensions/continue.continue-1.0.4-darwin-arm64/out/extension.js:122528:32)
    at llmStreamChat (/Users/albertosinigaglia/.vscode/extensions/continue.continue-1.0.4-darwin-arm64/out/extension.js:607168:23)
    at Th.handleMessage [as value] (/Users/albertosinigaglia/.vscode/extensions/continue.continue-1.0.4-darwin-arm64/out/extension.js:619543:29)

-----

Unable to connect to local Ollama instance. Ollama may not be running.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.