jetbrains plugin:Qwen 2.5: suffix is not currently supported
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
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.
Relevant log output or stack trace
No response
Steps to reproduce
No response
CodeGPT version
2.11.4-241.1
Operating System
Linux
Qwen2.5-Coder-7B-lnstruct suffix is not currently supported
Yes, I can confirm that this is a correct behaviour. The request body must contain either a raw prompt via the FIM_PREFIX placeholder or PREFIX and SUFFIX together. The suffix placeholder was added primarily for OpenAI text completions purposes.
Thanks for bringing it up, this needs to be documented better.