CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

Mistral API does not work for text completions

Open rtar opened this issue 1 year ago • 0 comments

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 expects text 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

rtar avatar Oct 05 '24 07:10 rtar