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
18.76k stars 1.59k forks source link

First parameter has member 'readable' that is not a ReadableStream. #1791

Closed LYouC closed 2 months ago

LYouC commented 3 months ago

Before submitting your bug report

Relevant environment info

- OS:ubuntu-22.04 and windows11
- Continue:v0.8.43
- IDE: vscode 1.91.1
- Model: deepseek-coder
- config.json:

{
  "disableIndexing": true,

  "models": [{
    "title": "DeepSeek-v2",
    "provider": "openai",
    "model": "deepseek-coder",
    "apiBase": "https://api.deepseek.com",
    "apiType": "openai",
    "apiKey": "***",
    "useLegacyCompletionsEndpoint": false,
    "contextLength": 8192
  }],
  "tabAutocompleteOptions": {
    "template": "Please teach me what I should write in the `hole` tag, but without any further explanation and code backticks, i.e., as if you are directly outputting to a code editor. It can be codes or comments or strings. Don't provide existing & repetitive codes. If the provided prefix and suffix contain incomplete code and statement, your response should be able to be directly concatenated to the provided prefix and suffix. Also note that I may tell you what I'd like to write inside comments. \n{{{prefix}}}<hole></hole>{{{suffix}}}\n\nPlease be aware of the environment the hole is placed, e.g., inside strings or comments or code blocks, and please don't wrap your response in . You should always provide non-empty output.\n",
    "useCache": true,
    "maxPromptTokens": 2048
  },
  "tabAutocompleteModel": {
    "title": "DeepSeek-V2",
    "model": "deepseek-coder",
    "apiKey": "***",
    "contextLength": 8192,
    "apiBase": "https://api.deepseek.com",
    "completionOptions": {
      "maxTokens": 4096,
      "temperature": 0,
      "topP": 1,
      "presencePenalty": 0,
      "frequencyPenalty": 0
    },
    "provider": "openai",
    "useLegacyCompletionsEndpoint": false
  },
  "customCommands": [
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\nWrite 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"
    }
  ]
  // "allowAnonymousTelemetry": true
}


### Description

When I try to use the dialogue box on the left for conversation, it outputs the following error.
First parameter has member 'readable' that is not a ReadableStream.

the error msg like this (i have upload the image  ,but it did not display.)
<img width="508" alt="image" src="https://github.com/user-attachments/assets/dee4ae00-29ed-4fc3-900b-508e88e2ebf2">

I'm not quite sure whether this is an issue with the DeepSeek API or with the continuation.

### To reproduce

1. chat with the left dialogue

### Log output

_No response_
bayuncao commented 2 months ago

@LYouC Hi, I seem to have found the cause of the problem. Check the plugins you have installed for your vscode for other AI code helpers like Fitten, you need to disable them and then the error won't show up anymore.

LYouC commented 2 months ago

@LYouC Hi, I seem to have found the cause of the problem. Check the plugins you have installed for your vscode for other AI code helpers like Fitten, you need to disable them and then the error won't show up anymore.

Thank you, this method worked.

kangziya commented 3 weeks ago

Indeed, I had installed the Fitten plugin in VSCode. After uninstalling the Fitten plugin, Continue was able to work normally. However, this is a serious issue, and I hope the developers will resolve it promptly.