So Mistral released Codestral, which I can use through the Continue plugin. However; it would be great to use it within the standard cursor interface/setup.
Any plans on adding support?
So Mistral released Codestral, which I can use through the Continue plugin. However; it would be great to use it within the standard cursor interface/setup.
Any plans on adding support?
Also wondering about this. Using Codestral in a browser window is less than ideal, would be nice to have it in Cursor but hey I think you guys are doing a great job so not complaining, just offering a suggestion
Done! You can add codestral
to the list of models in Settings.
If you try it out, LMK how you like it.
Thanks! That easy? What is our limit on use with codestral and is it the 32k context version?
Thanks again for the quick response, cool stuff.
Nope, it doesn’t work.
I’ve tried the https://codestral.mistral.ai/v1
api with my own mistral key.
It says
estral-latest\" }"
{"object":"error","message":"Invalid JSON payload","type":"invalid_request_error","param":null,"code":null}curl: (3) bad range specification in URL position 13:
messages\: [ { \role\: \system\, \content\: \You
Looks like messages
can’t accept the array.
It works pretty well with another ai extensions but I would be really appreciated if I can use codestral in cursor as well.
Looking into it.
Yes looking for codestral as well. I have entered my codestral api key and using the fallback url of “https://codestral.mistral.ai/v1”
I get the error Invalid OpenAI API Key
just add the model codestral dont need nothing to do more
Are you sure? I did that and it says it can’t find it when I type something in chat.
Also when I type in my api key into the openai field and click verify it also errors even though I have funds in the account
When you click the add model button what do you type in for codestral?
It doesn’t work. I just added codestral in the models
It can’t possibly work by just adding the model because it requires a (preapproved) api key.
I’m getting a CORS error when trying to add:
Access to fetch at ‘https://codestral.mistral.ai/v1/chat/completions’ from origin ‘vscode-file://vscode-app’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
So what are the actual working steps to have codestral work with cursor?
What am I adding to the model field?
Am I inputting anything into the open ai field?
Should I put anything in the fallback url?
Nope, I just did this and it works for me:
Well… still waiting for support.
It works with other vscode extension though…
Not working. Tried adding the codestral key and codestral chat api, giving error, problem reaching openai server. Its working on continue.dev
Note: tested on Mac OS 14.5 with following cursor build:
Version: 0.35.1
VSCode Version: 1.89.1
Commit: a915e3254b1192ce240c078da83fc1768a6e3e90
Date: 2024-06-21T23:14:50.455Z (1 wk ago)
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.5.0
Step 1 - click ‘+ Add model’ and add ‘codestral’ as shown in screenshot
Step 2 - test by disabling the other models
Conclusion - it worked for me
it did for me on mac though → Support for Codestral? - #16 by duksh
I am also having the error mentioned above on chat. Interestingly, it works with inline completion. I would appreciate some clarification about the inconsistency.
Note that my cursor build is identical to the config that @duksh has shared above.
The request id is: 1dbe1b07-f0c6-4405-83cd-fa463f38cdc8
Version: 0.35.1
VSCode Version: 1.89.1
Commit: a915e3254b1192ce240c078da83fc1768a6e3e90
Date: 2024-06-21T23:14:50.455Z
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.5.0
Yes, I also have the same issue. However, everything was working fine a few days ago.
From the first day when codestral was integrated inside cursor, it only worked in in-line mode for me.
I am really curious about the root cause of this.