在itBuilder中使用Mistral AI
itBuilder支持通过Mistral AI API访问模型,包括标准Mistral模型和专用于代码生成的Codestral模型。
获取API密钥
- 注册/登录: 访问Mistral控制台。创建账户或登录。可能需要完成验证流程。
- 创建API密钥:
支持的模型
itBuilder支持以下Mistral模型:
模型ID | 默认温度(Default Temperature) | 函数调用(Function Calling) | 视觉/图像支持(Vision/Image support) |
---|---|---|---|
codestral-latest | 0.3 | ✅ | ❌ |
mistral-large-latest | 0.7 | ✅ | ❌ |
ministral-8b-latest | 0.3 | ✅ | ❌ |
ministral-3b-latest | 0.3 | ✅ | ❌ |
mistral-small-latest | 0.3 | ✅ | ❌ |
pixtral-large-latest | 0.7 | ✅ | ✅ |
itBuilder中的默认模型温度为0.0,建议尝试调整温度!
注意: 模型可用性和规格可能会变化。 请参考Mistral AI文档和Mistral模型概览获取最新信息。
在itBuilder中配置
- 打开itBuilder设置: 点击itBuilder面板中的齿轮图标()。
- 选择提供商: 从"API提供商"下拉菜单中选择"Mistral"。
- 输入API密钥: 如果您使用
mistral
模型,请将Mistral API密钥粘贴到"Mistral API密钥"字段。如果您打算使用codestral-latest
,请参阅下面的"Codestral"部分。 - 选择模型: 从"模型"下拉菜单中选择您想要的模型。
使用Codestral
Codestral是专门为代码生成和交互设计的模型。 仅对于Codestral,您可以使用不同的端点(默认: codestral.mistral.ai)。 对于La Platforme API密钥,将Codestral基础URL更改为: https://api.mistral.ai
使用Codestral的步骤:
- 选择"Mistral"作为API提供商。
- 选择Codestral模型
- 输入您的Codestral(codestral.mistral.ai)或La Plateforme(api.mistral.ai) API密钥。