langchain-ai / langchainjs

🦜🔗 Build context-aware reasoning applications 🦜🔗
https://js.langchain.com/docs/
MIT License
12.79k stars 2.2k forks source link

feat(mistral): Mistral 1.3.1 migration #7218

Closed CarterMorris closed 4 days ago

CarterMorris commented 1 week ago

This PR updates the Mistral AI integration from version 0.4.0 to version 1.3.1. It includes fixing the outdated functionality of the Mistral chat models, embeddings, and llms integrations, as well as adding support for new features introduced to Mistral such as new model parameters, complex message types, and hooks. The Mistral integration of messages has been updated to support both Langchain's MessageContentComplex and Mistral's ContentChunk, with all necessary conversions. New unit and integration tests were added to test the new functionality, and the Mistral documentation was updated to include information on how to use hooks.

The migration was taken over from this PR.

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Nov 21, 2024 7:58am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **langchainjs-api-refs** | ⬜️ Ignored ([Inspect](https://vercel.com/langchain/langchainjs-api-refs/2j9bqKZE1gD6wyuwfThgJhLJ94HR)) | | | Nov 21, 2024 7:58am |
CarterMorris commented 1 week ago

Hey @jacoblee93, we've completed the Mistral migration to version 1.3.1, ready for review at your earliest convenience! Thanks

jacoblee93 commented 1 week ago

Thank you @CarterMorris! Will look soon.

CC @sophiamyang

jacoblee93 commented 4 days ago

Thank you all!