Skip to main content

Mistral

info

你可以从Mistral仪表板获取API密钥。请注意,Codestral(codestral.mistral.ai)的API密钥与其他所有模型(api.mistral.ai)的API密钥不同。如果你使用的是Codestral API密钥,你应该将apiBase设置为https://codestral.mistral.ai/v1。否则,我们将默认使用https://api.mistral.ai/v1

聊天模型

我们建议将Mistral Large配置为您的聊天模型。

config.json
{
"models": [
{
"title": "Mistral Large",
"provider": "mistral",
"model": "mistral-large-latest",
"apiKey": "[API_KEY]"
}
]
}

自动完成模型

我们建议将Codestral配置为您的自动补全模型。

config.json
{
"tabAutocompleteModel": {
"title": "Codestral",
"provider": "mistral",
"model": "codestral-latest"
// "apiBase": "https://codestral.mistral.ai/v1" // Do this if you are using a Codestral API key
}
}

嵌入模型

我们建议配置Mistral Embed作为您的嵌入模型。

config.json
{
"embeddingsProvider": {
"provider": "mistral",
"model": "mistral-embed",
"apiKey": "[API_KEY]",
"apiBase": "https://api.mistral.ai/v1"
}
}

重排序模型

Mistral 目前不提供任何重新排序模型。

点击这里查看重新排名模型提供者的列表。