ai_sdk_mistral 3.0.0
ai_sdk_mistral: ^3.0.0 copied to clipboard
Mistral AI provider for AI SDK Dart. Use Mistral models for text generation and embeddings.
3.0.0 #
- Inherits the shared adapter's trailing-usage handling, schema-free JSON mode, and active-stream cancellation behavior while retaining Mistral request-field mapping.
2.0.0 #
- Migrated Mistral chat models to the shared V4 language-model contract, including unified tools, response formats, lifecycle metadata, and nested usage.
1.2.0 #
- Rebuilt on the shared
ai_sdk_openai_compatiblebase; Mistral models now get real tool use and multimodal image input, with Mistral'srandom_seed/max_tokensfield naming mapped through the shared config. - Errors: non-2xx responses now surface as a typed
AiApiCallError(via the shared base). - Now requires
ai_sdk_openai_compatible ^1.2.0. - 100% line coverage.
1.1.0 #
- Bumped
ai_sdk_providerconstraint to^1.1.0. - Version aligned with the rest of the monorepo.
1.0.0 #
First stable release.
mistral(modelId)factory — create language model instances (Mistral Large, Mistral Small, Codestral, etc.).mistralEmbedding(modelId)— text embedding models (mistral-embed).- Full SSE streaming via Mistral AI Chat API.
- Tool use support with Mistral tool definitions.
- Configurable
apiKeyandbaseUrl.