Skip to content

in vscode, CONTINUE Can not connect to a public URL when using remote ollama #4301

@PeterHenTai

Description

@PeterHenTai

Before submitting your bug report

Relevant environment info

- OS:Linux
- Continue version:0.8.68
- IDE version:1.97.0
- Model:deepseek-coder:1.3b
- config:
  
{
  "models": [
    {
      "apiBasse": "https://41245a9c.r8.cpolar.top",
      "model": "deepseek-coder:1.3b",
      "title": "deepseek_yuyx",
      "provider": "ollama"
    }
  ],
  "tabAutocompleteModel": {
    "apiBasse": "https://41245a9c.r8.cpolar.top",
    "model": "deepseek-coder:1.3b",
    "title": "deepseek_yuyx",
    "provider": "ollama"
  },
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "name": "share",
      "description": "Export the current chat session to markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    },
    {
      "name": "commit",
      "description": "Generate a git commit message"
    }
  ]
}

Description

My colleague ran the DeepSeek model on his computer using Olama and deployed the model to the public network using a private network penetration tool. After configuring apiBase using the continue plugin in VSCode, I was unable to use it and encountered the error 'Unable to connect to local Olama instance' Olama may not be running. 'However, if I use the same config. json on Windows, it can be used normally. It looks like a bug in the Linux version

To reproduce

  1. install continue plugin in VScode
  2. edit config.json as this bug
  3. click on enter
  4. see Unable to connect to local Olama instance' Olama may not be running

Log output

Metadata

Metadata

Labels

area:configurationRelates to configuration optionside:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:linuxHappening specifically on Linuxpriority:mediumIndicates medium priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions