Trying out Continue AI code assistant in VS code

Just found out about the Continue extension for VS Code (and JetBrains), and what’s cool about it is that you can set it up with a number of AI providers, including Ollama, which runs on your local computer.

In order to install Ollama first install the app on your Mac from the official website, then pull and run a couple of models from your terminal:

and also

and

Then open this file

and here you can set the models you would like to use. If you want to use AI providers you have a key for, you can set them up.

Here is my config.json, where I have setup OpenAI, Claude, Mistral, Codestral, Llama for the chatbot, and Qwen by Ollama for the autocomplete

If you have an API key for codestral, Continue recommends using that model for code completion, so in that case it the embeddingsProvider would look like this:

This should be it. Once you save the file, the Continue extension should make it possible to chat using the providers you setup:

It’s also possible to add new models from the “Add chat model” button

And also, autocomplete should work with Ollama running on your Mac

I’ll give it a try and see how it goes, compared to other AI providers.