void icon indicating copy to clipboard operation
void copied to clipboard

[Feature] Integrate free Codestral Mistral API for autocompletion

Open mathys-lopinto opened this issue 6 months ago • 3 comments

Hello, Mistral AI have deploy an dedicated API for Codestral who is free: Codestral Console. In order to use this API we need to use another API Key and API URL.

Integrate this feature will permit to have an Free Auto Completion with a great FIM model.

Can you implement this new API to Void ?

mathys-lopinto avatar Jul 14 '25 08:07 mathys-lopinto

Hello, there is some choices who led to using api.mistral.com

  1. You can select every mistral model from that one, with the condestral endpoint you only have codestral.
  2. Fim works with api, this is a model related feature.

Using a mistral free api key, i am able to use mistral models inside Void, with the FIM Features.

We are also using theses functions from npm packages

import { MistralCore } from '@mistralai/mistralai/core.js';
import { fimComplete } from '@mistralai/mistralai/funcs/fimComplete.js';

So free completion and FIM is allready working (for a while as i am using it allready)

jcommaret avatar Aug 05 '25 10:08 jcommaret

@jcommaret Is it convenient to share your source code branch? Thank you

hehua2018 avatar Nov 21 '25 14:11 hehua2018

@hehua2018 I am not sure this is the way it should be, but as @andrewpareles is not updating the Project source, this might be a good work around. I am AFK for the week end, will come back to you on Monday.

jcommaret avatar Nov 21 '25 15:11 jcommaret