获取 API 密钥
- 注册/登录: 访问 Mistral 平台。创建账户或登录。你可能需要通过验证过程。
- 创建 API 密钥:
支持的模型
Cline 支持以下 Mistral 模型:- pixtral-large-2411
- ministral-3b-2410
- ministral-8b-2410
- mistral-small-latest
- mistral-medium-latest
- mistral-small-2501
- pixtral-12b-2409
- open-mistral-nemo-2407
- open-codestral-mamba
- codestral-2501
- devstral-small-2505
在 Cline 中配置
- 打开 Cline 设置: 点击 Cline 面板中的设置图标(⚙️)。
- 选择提供商: 从”API 提供商”下拉菜单中选择”Mistral”。
- 输入 API 密钥: 如果你使用标准
mistral模型,将你的 Mistral API 密钥粘贴到”Mistral API 密钥”字段中。如果你打算使用codestral-latest,请参阅下面的”使用 Codestral”部分。 - 选择模型: 从”模型”下拉菜单中选择你想要的模型。
使用 Codestral
Codestral 是专门为代码生成和交互而设计的模型。 对于 Codestral,你可以使用不同的端点(默认:codestral.mistral.ai)。 如果为 Codestral 使用 La Plateforme API 密钥,请将 Codestral 基础 URL 更改为:https://api.mistral.ai
要在 Cline 中使用 Codestral:
- 在 Cline 设置中选择”Mistral”作为 API 提供商。
- 选择 Codestral 模型(例如,
codestral-latest)从”模型”下拉菜单中。 - 输入你的 Codestral API 密钥(来自
codestral.mistral.ai)或你的 La Plateforme API 密钥(来自api.mistral.ai)到 Cline 中相应的 API 密钥字段。

