Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customized model can't take advantage of the Ctrl+I window feature #1633

Closed
3 tasks done
dbsxdbsx opened this issue Jul 2, 2024 · 4 comments
Closed
3 tasks done

Customized model can't take advantage of the Ctrl+I window feature #1633

dbsxdbsx opened this issue Jul 2, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@dbsxdbsx
Copy link

dbsxdbsx commented Jul 2, 2024

Before submitting your bug report

Relevant environment info

- OS:Win10
- Continue:v0.8.40
- IDE:Vscdoe v1.90

Description

When using the Ctrl+I feature with a customized model, it finally raise issue like this:
image

my config is like this:

{
  "models": [
   ...
    {
      "title": "pplx",
      "model": "llama-3-sonar-large-32k-online",
      "apiKey": "pplx-<my-token>",
      "apiBase": "https://api.perplexity.ai",
      "provider": "openai"
    }
  ],
...
}

while using any built-in model(For example, the free-limited usage of GPT4o),everything is fine. And since I only got this customized model, I am not sure if it is due to perplexity specifically or not.

To reproduce

  1. config an custoimized model
  2. pressing ctrl+I
  3. input any command
  4. the error occurs with the msg shown at bottom right in vscode

Log output

No response

@dbsxdbsx dbsxdbsx added the bug Something isn't working label Jul 2, 2024
@sestinj
Copy link
Contributor

sestinj commented Jul 3, 2024

@dbsxdbsx for APIs like this that aren't actually OpenAI compatible (e.g. missing the /completions endpoint), you can set "useLegacyCompletionsEndpoint": false in your model in config.json

@dbsxdbsx
Copy link
Author

dbsxdbsx commented Jul 4, 2024

you can set "useLegacyCompletionsEndpoint": false in your model in config.json
Nice! It is solved.

@dbsxdbsx dbsxdbsx closed this as completed Jul 4, 2024
@dbsxdbsx
Copy link
Author

dbsxdbsx commented Jul 4, 2024

By the way, one thing I think need to be improved is that I hope there could be a mechanism to hold the historical input for both the ctrl+I windows input box and the side window box. So that user can fetch them by pressing arow up/down button, just like Microsoft Copilot.

@sestinj
Copy link
Contributor

sestinj commented Jul 4, 2024

@dbsxdbsx I really like the idea actually. I made a first attempt here, and we'll probably ship it with next pre-release: d546653

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants