Mistral AI
了解如何配置和使用 Mistral AI 模型(包括 Codestral)与 Cline。涵盖 API 密钥设置和模型选择。
Cline 支持通过 Mistral AI API 访问模型,包括标准 Mistral 模型和代码专用 Codestral 模型。
获取 API 密钥
注册/登录: 访问 Mistral Platform。创建账户或登录。您可能需要通过验证过程。
创建 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
注意: 模型可用性和规格可能会更改。 参考 Mistral AI 文档和Mistral 模型概述获取最新信息。
在 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)。在 Cline 的相应 API 密钥字段中输入您的 Codestral API 密钥(来自
codestral.mistral.ai)或您的 La Plateforme API 密钥(来自api.mistral.ai)。
Last updated