Copilot Options
Configure your CompletionCopilot instance with different providers, models and custom options to get the best code completions for your needs.
Changing the Provider and Model
You can specify a different provider and model by setting the provider and model parameters in the CompletionCopilot instance.
const copilot = new CompletionCopilot(process.env.MISTRAL_API_KEY, {
provider: 'mistral',
model: 'codestral',
});Currently, Monacopilot supports the following providers and models:
| Provider | Model | Notes | API Key |
|---|---|---|---|
| mistral | codestral | Provides accurate code completions using Fill-in-the-Middle (FIM) technology with fast response time | Get Mistral API Key |
INFO
Monacopilot includes only code completion models as built-in options, such as Codestral by Mistral. General-purpose chat models like GPTs or Claude are not included, as they are slower and less accurate for code completion tasks. Currently, Codestral is the only built-in model, but more will be added as they become available.
However, you can still use any other model, including OpenAI GPTs, Claude, or others—by using the Custom Model feature.