codestral_init {codestral} | R Documentation |
Initialize codestral
Description
Create environment variables for operationg FIM and chat.
Usage
codestral_init(
mistral_apikey = Sys.getenv(x = "R_MISTRAL_APIKEY"),
codestral_apikey = Sys.getenv(x = "R_CODESTRAL_APIKEY"),
fim_model = "codestral-latest",
chat_model = "codestral-latest",
mamba_model = "open-codestral-mamba",
temperature = 0,
max_tokens_FIM = 100,
max_tokens_chat = "",
role_content = NULL
)
Arguments
mistral_apikey , codestral_apikey |
The API keys to use for accessing
Codestral Mamba and Codestral. Default to the value of the
|
fim_model |
A string giving the model to use for FIM. |
chat_model |
A string giving the model to use for Codestral chat. |
mamba_model |
A string giving the model to use for Codestral Mamba chat. |
temperature |
An integer giving the temperature to use. |
max_tokens_FIM , max_tokens_chat |
Integers giving the maximum number of tokens to generate for each of these operations. |
role_content |
A role to assign to the system Default is "You write programs in R language only. You adopt a proper coding approach by strictly naming all the functions' parameters when calling any function with named parameters even when calling nested functions, by being straighforward in your answers." |
Details
The most important paremeters here are the ..._apikey
parameters
without which the Mistral AI API can not be used.
To start with, beginners may keep default values for other parameters. It
seems sound to use the latest models of each type. However with time, the
user may be willing to customize temperature
, max_tokens_FIM
, max_tokens_chat
and
role_content
for his/her own needs.
Value
Invisible 0
.