Giter VIP home page Giter VIP logo

Comments (2)

MattyRad avatar MattyRad commented on June 3, 2024 1

Sorry, I should have provided the whole config. Here it is, for reference.

{
  "models": [
    {
      "title": "Ollama",
      "provider": "ollama",
      "model": "mistral:latest",
      "apiBase": "http://192.168.1.123:11434",
      "completionOptions": {},
      "requestOptions": {
        "timeout": 1000
      }
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "share",
      "description": "Export this session as markdown"
    }
  ],
  "customCommands": [
    {
      "name": "test",
      "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "contextProviders": [
    {
      "name": "open",
      "params": {}
    }
  ]
}

Screenshot from 2024-03-07 16-18-45

This error modal popped up in VSCode after retying. Only the modal showed though, there weren't any errors in the Chrome console. I restarted VSCode and now it appears to be working.

I had toggled the apiBase between local Ollama (apiBase omitted from config) and remote Ollama ("apiBase": "http://192.168.1.123:11434",) many times, and I had also restarted VSCode on each change, so I don't know why it's working now all of the sudden.

Anyway, sorry for the noise. I wish I could provide better error logs.

from continue.

sestinj avatar sestinj commented on June 3, 2024

@MattyRad Are you entering literally 192.168.1.xxx:11434? It's important to keep URL scheme (http:// or https://).

Otherwise, if you could share the whole model object from your config, or any logs on the Continue side (cmd+shift+P, "Toggle Developer Tools") or the Ollama side, I can try to further debug. Many folks have used remote before so either there's some brand new regression or just a small blip in config (in which case we ought to improve the docs)

from continue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.