Skip to content

Commit

Permalink
mistral[minor]: Fix assigning class properties (#3681)
Browse files Browse the repository at this point in the history
* mistral[minoir]: Fix assigning class properties

* cr

* chore: lint files

* bump v to 0.0.3
  • Loading branch information
bracesproul authored Dec 15, 2023
1 parent afec9fa commit 31ac688
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/langchain-mistralai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langchain/mistralai",
"version": "0.0.2",
"version": "0.0.3",
"description": "MistralAI integration for LangChain.js",
"type": "module",
"engines": {
Expand Down
10 changes: 8 additions & 2 deletions libs/langchain-mistralai/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

2 comments on commit 31ac688

@vercel
Copy link

@vercel vercel bot commented on 31ac688 Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 31ac688 Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

langchainjs-docs – ./docs/core_docs/

langchainjs-docs-ruddy.vercel.app
langchainjs-docs-git-main-langchain.vercel.app
langchainjs-docs-langchain.vercel.app
js.langchain.com

Please sign in to comment.