carlrobertoh / CodeGPT

The leading open-source AI copilot for JetBrains. Connect to any model in any environment, and customize your coding experience in any way you like.
https://codegpt.ee
Apache License 2.0
1.01k stars 213 forks source link

jetbrains plugin:Qwen 2.5: suffix is not currently supported #720

Open mkhludnev opened 4 days ago

mkhludnev commented 4 days ago

What happened?

I have Qwen 2.5 deployed internally. The recent plugin in set into JetBrains Idea. Everything is almost fine - thanks for the great project. However, default CodeCompletion settings is little bit odd Screenshot from 2024-10-02 14-29-22 it causes

Unknown API response. Code: 400, Body: {"object":"error","message":"suffix is not currently supported","type":"BadRequestError","param":null,"code":400}

java.lang.RuntimeException
  at ee.carlrobert.llm.completion.CompletionEventSourceListener.onFailure(CompletionEventSourceListener.java:116)

Mitigation measure

After I remove suffix property and set the prompt, code completions seem working now. However, I'm not sure if it's right and quite appreciate if you confirm.

Screenshot from 2024-10-02 14-31-39

Relevant log output or stack trace

No response

Steps to reproduce

No response

CodeGPT version

2.11.4-241.1

Operating System

Linux

linpan commented 2 days ago

Qwen2.5-Coder-7B-lnstruct suffix is not currently supported CleanShot 2024-10-05 at 13 49 30