continuedev / continuedev/continue

Autocomplete error with OpenRouter

Open
#3,648 1 comment 0 reactions 1 assignee View on GitHub

@RomneyDa is already working on this.

Since Jan 8, 2025.

area:autocomplete ide:vscode kind:bug needs-triage os:mac
Dominant language
TypeScript
Stars
36k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Before submitting your bug report
Relevant environment info
- OS: MacOS 
- Continue version: 0.8.66
- IDE version: VsCode 1.96.2 (Universal)
- Model:deepseek/deepseek-chat
- config.json:
Description

I got this error when setup TabAutocompleteModel using OpenRouter

HTTP 400 Bad Request from https://openrouter.ai/api/v1/completions {"error":{"message":"Input required: specify "prompt"","code":400},"user_id":"user_2qHL97rYiokWtaA9iIesnFMgVkQ"}

Here is my settings:

{
        "title": "DeepSeek",
        "provider": "openrouter",
        "model": "deepseek/deepseek-chat",
        "apiKey": "",
        "apiBase": "https://openrouter.ai/api/v1",
        "contextLength": 2048
}
To reproduce

No response

Log output

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.