Conversation
- Use /v1/conversations API endpoint (different rate limits) - Convert messages to inputs format for Mistral API - Handle system prompts via instructions field - Support Mistral built-in web_search tool - Convert tool results to user messages for feedback loop - Parse response with array content format Closes #<issue>
|
@Zepan Mistral AI is a good provider to support. However, PR #213 (Provider Refactor — roadmap #283, In Progress) will restructure how providers are organized. Recommendation: Wait for #213 to merge first. The refactor groups providers by protocol (OpenAI-compatible, Anthropic, etc.) — Mistral would likely fit into the OpenAI-compatible family, making this PR much simpler after the refactor. |
|
Thanks for the contribution! This PR adds valuable Mistral-specific features (native However, this PR needs to be reworked due to recent architecture changes. Architecture Update: PR #492 (Provider Refactoring) has been merged on 2026-02-20, introducing a protocol-based Current Status: Mistral is not yet registered as a protocol. However, users can already use Mistral via OpenAI-compatible API: {
"model_list": [
{
"model_name": "mistral",
"model": "openai/mistral-large-latest",
"api_base": "https://api.mistral.ai/v1",
"api_key": "your-key"
}
]
}Suggested Implementation for Native Mistral API: To add native
You can refer to Would you like to rebase and update this PR with the new approach? Happy to help review once updated! |
|
PR #541 implements native Mistral AI provider support, which addresses this feature request. Linking for visibility. |
Summary
This PR adds Mistral AI as a supported LLM provider in PicoClaw.
Changes
Uses
/v1/conversationsAPI endpoint - Different rate limits than chat completions, accepts "latest" model namesRequest format conversion:
messages→inputsinstructionsfieldmax_tokens,temperature→completion_argsTool support:
web_searchtoolResponse parsing:
Usage
{ "agents": { "defaults": { "provider": "mistral", "model": "mistral-large-latest" } }, "providers": { "mistral": { "api_key": "your-mistral-api-key" } } }Testing