@langchain/anthropic 0.3.33 → 0.3.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -618,6 +618,8 @@ class ChatAnthropicMessages extends chat_models_1.BaseChatModel {
618
618
  if (this.model.includes("opus-4-1") ||
619
619
  this.model.includes("sonnet-4-5") ||
620
620
  this.model.includes("haiku-4-5")) {
621
+ this.temperature =
622
+ fields?.temperature === null ? undefined : fields?.temperature;
621
623
  this.topP = fields?.topP === null ? undefined : fields?.topP;
622
624
  }
623
625
  else {
@@ -615,6 +615,8 @@ export class ChatAnthropicMessages extends BaseChatModel {
615
615
  if (this.model.includes("opus-4-1") ||
616
616
  this.model.includes("sonnet-4-5") ||
617
617
  this.model.includes("haiku-4-5")) {
618
+ this.temperature =
619
+ fields?.temperature === null ? undefined : fields?.temperature;
618
620
  this.topP = fields?.topP === null ? undefined : fields?.topP;
619
621
  }
620
622
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/anthropic",
3
- "version": "0.3.33",
3
+ "version": "0.3.34",
4
4
  "description": "Anthropic integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {