The mistral module provides a CLI interface for Mistral AI's services, supporting high-efficiency text generation and multi-language translation.
When to Activate
- When the user wants to chat with Mistral models.
- When the user needs to translate file content using Mistral's API.
- When checking or managing Mistral API keys.
Core Principles & Rules
- API Key Management: Use
initor--cfg apikey=<key>for setup. - Alias Access: Use the
@mistralalias for fast interaction. - Model Exploration: Use
model lsto see all available Mistral models.
Patterns & Examples
Translate Files
# Use Mistral to translate a file to Chinese
@mistral --file ./document.en.md "Translate to Chinese"
List Models
# View all supported Mistral models
x mistral model ls
Checklist
- Ensure the Mistral API key is configured.
- Verify file paths when using the
--fileflag.