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
19.63k stars 1.71k forks source link

Cannot Add Custom Docs & I am Seeing Many Errors #1817

Open CFalcon075 opened 4 months ago

CFalcon075 commented 4 months ago

Before submitting your bug report

Relevant environment info

- OS:
Edition Windows 11 Pro
Version 22H2
Installed on - 7/‎11/‎2024
OS build - 22621.3880
Experience - Windows Feature Experience Pack 1000.22700.1020.0
- Continue:
v0.9.187
- IDE:
VSCode 1.91.1
- Model:
(I have used OpenRouter & Codestral, the latest version of Codestral too, since I had done this today.)
- config.json:

{
  "allowAnonymousTelemetry": true,
  "models": [
    {
      "apiKey": "",
      "title": "Codestral",
      "model": "codestral-latest",
      "contextLength": 32000,
      "provider": "mistral"
    }
  ],
  "customCommands": [],
  "tabAutocompleteModel": {
    "apiKey": "",
    "title": "Tab Autocomplete",
    "provider": "mistral",
    "model": "codestral-latest"
  },
  "embeddingsProvider": {
    "provider": "transformers.js"
  }
}

Description

I am having this issue about adding custom docs, and I have tried this relentlessly to get the custom docs to work, but I cannot make this work at all. I am seeing HTTP 405 error codes, I have linked the image down below to show you what is going on. This is extremely broken and I have no clue why this is happening.

Whattheheck

I also want to mention that, this is all on a fresh install on Continue. It's a shock to me that it's happening, I have tried everything, and I have taken my config.json out of the .continue folder and into my desktop, then I had deleted the .continue folder in my Users directory in my username. I then launched VSCode back, and then killed the process or closed out of VSCode. Then after that I had replaced the JSON file with the one from my desktop which is the one you see in the relevant environment info.

I want this to work so that way I may be able to use custom docs to make my addons for a popular game called Garry's Mod. That's why I want the custom docs.

Here is another screenshot that shows something interesting in the VSCode developer window in console: logging thing

To reproduce

https://github.com/user-attachments/assets/5ebc07cf-e070-4d6d-aa3b-d3eaba66f726

  1. Go to the Continue extension's "+ Add Context" area and then click on it.
  2. Then go and click on the Docs section.
  3. Scroll down to add a doc.
  4. Add the URL and title of the custom doc. Then submit.
  5. Then, type in "@docs" or click on the "+ Add Context" button, to then select the documentation, type in the title of it.
  6. After that, go ahead and type whatever you want to ask the AI. Then after that I think it should either give you a HTTP 405 method error, but most likely a getting table docs error is the most persistent for me.

Log output

N/A, since I believe I had already screenshotted the log in the description, and sent it off from my logs that show the error.
Patrick-Erichsen commented 4 months ago

Lengthy discussion on this here -> https://discord.com/channels/1108621136150929458/1263301010605215745