diff --git a/libs/langchain-mistralai/package.json b/libs/langchain-mistralai/package.json index 2a381d061915..0de14f80a90a 100644 --- a/libs/langchain-mistralai/package.json +++ b/libs/langchain-mistralai/package.json @@ -1,6 +1,6 @@ { "name": "@langchain/mistralai", - "version": "0.0.2", + "version": "0.0.3", "description": "MistralAI integration for LangChain.js", "type": "module", "engines": { diff --git a/libs/langchain-mistralai/src/chat_models.ts b/libs/langchain-mistralai/src/chat_models.ts index 114380478946..5ea768031ac3 100644 --- a/libs/langchain-mistralai/src/chat_models.ts +++ b/libs/langchain-mistralai/src/chat_models.ts @@ -194,8 +194,14 @@ export class ChatMistralAI< ); } this.apiKey = apiKey; - - // this.client = new MistralClient(apiKey, fields?.endpoint); + this.streaming = fields?.streaming ?? this.streaming; + this.endpoint = fields?.endpoint; + this.temperature = fields?.temperature ?? this.temperature; + this.topP = fields?.topP ?? this.topP; + this.maxTokens = fields?.maxTokens ?? this.maxTokens; + this.safeMode = fields?.safeMode ?? this.safeMode; + this.randomSeed = fields?.randomSeed ?? this.randomSeed; + this.modelName = fields?.modelName ?? this.modelName; } _llmType() {