File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " langchain " : patch
3+ ---
4+
5+ fix(langchain): add ChatMistralAI to well known models
Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ export function generateModelImportMap(
112112 importMapKey = "chat_models__google_genai" ;
113113 } else if ( modelLcName === "ChatBedrockConverse" ) {
114114 importMapKey = "chat_models__chat_bedrock_converse" ;
115+ } else if ( modelLcName === "ChatMistralAI" ) {
116+ importMapKey = "chat_models__mistralai" ;
115117 } else if ( modelLcName === "ChatMistral" ) {
116118 importMapKey = "chat_models__mistralai" ;
117119 } else if ( modelLcName === "ChatFireworks" ) {
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ export async function pull<T extends Runnable>(
7777 . ChatGoogleGenerativeAI ;
7878 } else if ( modelName === "ChatBedrockConverse" ) {
7979 modelClass = ( await import ( "@langchain/aws" ) ) . ChatBedrockConverse ;
80+ } else if ( modelName === "ChatMistralAI" ) {
81+ modelClass = ( await import ( "@langchain/mistralai" ) ) . ChatMistralAI ;
8082 } else if ( modelName === "ChatMistral" ) {
8183 modelClass = ( await import ( "@langchain/mistralai" ) ) . ChatMistralAI ;
8284 } else if ( modelName === "ChatGroq" ) {
You canβt perform that action at this time.
0 commit comments