npm / @langchain/mistralai
@langchain/mistralai
What changed in @langchain/mistralai 0.3 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
1 security4 new APIs and options5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@langchain/mistralai 19 changes
New APIs and options 4
Adds native event conversion for streamEvents.
Adds standard schema support for structured output with Mistral AI.
Package versions are stamped into runnable trace metadata at construction time, making version information available in LangSmith traces.
Adds the useFim option to toggle between FIM and chat APIs.
Fixes and other changes 5
Chat completions now populate response_metadata.model, which was previously missing.
Chat model invoke and stream operations now properly check and propagate abort signals, enabling cancellation and allowing fallback chains to proceed when a runnable is aborted.
Fixed streaming issues for @langchain/mistralai.
Fixed type compatibility issues for @langchain/mistralai.
Fixed compatibility with moduleResolution set to "node".
@langchain/mistralai 0.31 changes
Security 1
Fixes CVE 2025 12735.