lumide_codestral

pub package License: MIT Powered by SoFluffy

The official Lumide IDE plugin for Mistral's Codestral.

lumide_codestral provides advanced, high-performance inline code suggestions powered by Mistral's state-of-the-art Codestral model. It uses the Fill-in-the-Middle (FIM) technique to provide contextually accurate completions based on both your prefix and suffix code.

Features

🚀 Codestral Inline Completions

  • Ghost Text: Get instant, contextual suggestions as you code.
  • FIM Powered: Unlike standard completion, Codestral understands the "middle" of your file, leading to significantly higher accuracy in existing functions.
  • High Performance: Optimized for low-latency completions via the Mistral API.

🔐 Simple Setup

  • API Key Authentication: Simply paste your Mistral API key when prompted or configure it in Settings.
  • Support for Private Endpoints: Custom API URL support for proxies or enterprise Mistral deployments.

⚙️ Customizable Experience

  • Model Selection: Switch between codestral-latest or specific versions like codestral-2501.
  • Token Control: Manage your API usage by limiting the maximum tokens per completion.

Getting Started

  1. Install the plugin from the Lumide Marketplace.
  2. Click on "Sign In Required" in the Status Bar (bottom right).
  3. Click "Sign In" and paste your Codestral API key when prompted.
  4. You can get a key at console.mistral.ai/codestral.

Configuration

Customize behavior in your .sofluffy/lumide/settings.json or Workspace Settings:

Key Default Description
codestral.apiKey null Your Mistral API key (Secret).
codestral.apiUrl https://codestral.mistral.ai Base URL for the Mistral API.
codestral.model codestral-latest The model version to use.
codestral.maxTokens 350 Maximum length of suggested code.

Requirements

  • Mistral API Key: A valid Mistral account with a subscription to Codestral.
  • Internet Access: The plugin needs an active connection to communicate with Mistral's APIs.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Built with ❤️ by SoFluffy.

Happy Coding 🦊

Libraries

lumide_codestral