codestral is an R package that provides an RStudio addin for interacting with Mistral AI models using their API. It supports both Fill-in-the-Middle (FIM) code completion and chat functionality.
You can install the development version from GitHub:
# install.packages("pak")
pak::pak("urbs-dev/codestral")For detailed usage instructions and examples, please refer to the codestral-introduction vignette.
library(codestral)
codestral_init(mistral_apikey = "your-api-key-here", codestral_apikey = "your_codestral-api-key-here")This package is licensed under the MIT License. See LICENSE for details.