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.
1.01k
stars
213
forks
source link
Mistral API does not work for text completions #723
Open
rtar opened 1 day ago
What happened?
Mistral API does not work for text completions.
I.e. there is no way to use either free or paid codestral on their site through this plugin.
I think the reason is that
llm-client
expectstext
field within a response, while, in reality,message
field comes.Here is the documentation for that API with an example response: https://docs.mistral.ai/api/#tag/fim/operation/fim_completion_v1_fim_completions_post
Relevant log output or stack trace
No response
Steps to reproduce
Configure Mistral API to use
codestral-latest
with "Custom OpenAI" provider. Either free or paid endpoint is okay.No code completion works.
onMessage
method is called with empty string.CodeGPT version
2.11.4
Operating System
None