Skip to content

An R package to use the Mistral AI API in Rstudio thanks to an addin for chat and Fill-in-the-Middle (FIM).

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

urbs-dev/codestral

Repository files navigation

codestral

Lifecycle: stable

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.

Features

  • Fill-in-the-Middle (FIM): Get code completion suggestions based on context
  • Chat functionality: Interact with Codestral and Codestral Mamba models
  • File inclusion: Easily include file contents in your prompts
  • Package-aware: Automatically detects R package environments

Installation

You can install the development version from GitHub:

# install.packages("pak")
pak::pak("urbs-dev/codestral")

Getting Started

For detailed usage instructions and examples, please refer to the codestral-introduction vignette.

Quick Setup

  1. Get your API keys from Mistral AI Platform
  2. Initialize the package:
library(codestral)
codestral_init(mistral_apikey = "your-api-key-here", codestral_apikey = "your_codestral-api-key-here")
  1. Use the RStudio addin "Codestral code completion" to interact with the models

Documentation

library(codestral)
vignette("codestral-introduction")

License

This package is licensed under the MIT License. See LICENSE for details.

About

An R package to use the Mistral AI API in Rstudio thanks to an addin for chat and Fill-in-the-Middle (FIM).

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages