#IDE integration for Mistral Le Chat

78 messages ยท Page 1 of 1 (latest)

quiet trail
#

If your IDE supports plugins like continue.dev, you can use codestral endpoint or api.mistral.ai one with Codestral ๐Ÿ˜‰

twilit fractal
quiet trail
twilit fractal
#

I also need to request Codestral access separately and I am not sure if the Codestral access is limited.

quiet trail
quiet trail
twilit fractal
#

Added the Codestral API key

#

It only shows as an Autocomplete model, though Codestral seems to have compatibility with chat, no?

quiet trail
twilit fractal
#

It already shows up as a chat, edit and apply AI.

quiet trail
#

And use codestral API key

twilit fractal
#

That is what I did

quiet trail
#

Technically it should work

twilit fractal
#

Wait a second

quiet trail
#

But ofc continue.dev changed config format

#

-.-

twilit fractal
#

Cant edit YAML :(

quiet trail
twilit fractal
#

Dang, what a hassle ๐Ÿ’€

quiet trail
#

Previously it was easier

#

Before continue.dev changed config format

#

Okay

#

So

#

On my end, I have provider "Mistral"

#

Model: codestral-latest

#

And Codestral apiKey

#

For both tabAutocomplete and model in general

#

So you need to use extra key related to API base

#

And set it to Codestral endpoint

twilit fractal
# quiet trail And set it to Codestral endpoint
version: 1.0.0
schema: v1

models:
  - name: Codestral
    provider: mistral
    apiBase: codestral.nistral.ai/v1
    model: codestral-latest
    apiKey: ${{ inputs.MISTRAL_API_KEY }}
    roles:
      - autocomplete
      - chat
      - edit
      - apply```
#

This is what I tried improvising with, I got Codestral visible as a local model

#

But I still get 401 Invalid URL

quiet trail
#

Mistral, not nistral xd

twilit fractal
#

:)

twilit fractal
quiet trail
twilit fractal
quiet trail
twilit fractal
#

Ill see if Le Chat can help

quiet trail
#

What's worse is that I cannot force continue.dev to make yaml config for me

#

It makes config.json instead xD

twilit fractal
#

๐Ÿ’€

#

Are you sure your plugin isnt out of date?

#

I just manually made the yaml file and it uses that instead of config.json apparently

quiet trail
twilit fractal
quiet trail
#

Maybe continue.dev needs issue ticket on GH

twilit fractal
#

This is what I get basically

#

Okay I solved it, you got to have https:// at the beginning of the URL

#

Thank you KhazAkar for your help! ๐Ÿ˜„

#

It is not the Le Chat I wanted necessarily, but Codestral shall do.

#

Anyways, it would be nice to have Le Chat as well, so I could ask some knowledge questions from it while coding.

quiet trail
twilit fractal
quiet trail
twilit fractal
quiet trail
twilit fractal
quiet trail
#

just like OpenAI does with API to their own models, and Anthropic

#

Everyone here have same scheme ๐Ÿ™‚

twilit fractal
#

You have to pay for Claude and ChatGPT per token if you want to use their models in IDE integration?

quiet trail
#

Yup

twilit fractal
#

Damn, I didnt know that. Thanks for letting me know! ๐Ÿ˜„

quiet trail
#

For Anthropic and OpenAI, respectively ๐Ÿ™‚

#

and their models

twilit fractal
#

๐Ÿ‘

quiet trail
#

claude and chatgpt are just interfaces with extra features on top, ready to use product

#

same for le chat