@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.
- package/dist/chat_models.cjs +2 -0
- package/dist/chat_models.js +2 -0
- package/package.json +1 -1
package/dist/chat_models.cjs
CHANGED
|
@@ -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 {
|
package/dist/chat_models.js
CHANGED
|
@@ -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 {
|