continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
14.94k stars 1.1k forks source link

Error loading config.json. Please check your config.json file: ReferenceError: Headers is not defined #875

Closed slice-sarthakd closed 6 months ago

slice-sarthakd commented 6 months ago

Before submitting your bug report

Relevant environment info

- OS: MacOS
- Continue: pre-released version and latest version
- IDE: VsCode

Description

While adding a localmodel of ollama it throws error

Screenshot 2024-02-18 at 5 19 17 PM
{
  "models": [
    {
      "title": "GPT-4 (Free Trial)",
      "provider": "free-trial",
      "model": "gpt-4"
    },
    {
      "title": "GPT-4 Vision (Free Trial)",
      "provider": "free-trial",
      "model": "gpt-4-vision-preview"
    },
    {
      "title": "Gemini Pro (Free Trial)",
      "provider": "free-trial",
      "model": "gemini-pro"
    },
    {
      "title": "Codellama 70b (Free Trial)",
      "provider": "free-trial",
      "model": "codellama-70b"
    }, 
    {
      "title": "Code Llama",
      "provider": "ollama",
      "model": "codellama-7b"
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "share",
      "description": "Download and share this session"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    }
  ],
  "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": "diff",
      "params": {}
    },
    {
      "name": "open",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ]
}

To reproduce

No response

Log output

No response

sestinj commented 6 months ago

@slice-sarthakd I've seen this in situations where the node version used to run VS Code is out-of-date. If you click the about menu, can you share what Node version it lists? You might have luck by installing the latest of VS Code, but if not let me know!

Screenshot 2024-02-19 at 10 21 03 AM
slice-sarthakd commented 6 months ago

Upgrading to latest vscode version solved it. Thanks!

LoRAMilkshake commented 4 months ago

I'm using the latest visual studio code and I'm having this problem