We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b401680 commit 02210a1Copy full SHA for 02210a1
libs/providers/langchain-anthropic/src/tests/chat_models.int.test.ts
@@ -1518,6 +1518,18 @@ describe("Sonnet 4.5", () => {
1518
1519
expect(response.content.length).toBeGreaterThan(0);
1520
});
1521
+
1522
+ // https://github.com/langchain-ai/langchainjs/issues/9258
1523
+ it("works when passing topP arg", async () => {
1524
+ const model = new ChatAnthropic({
1525
+ model: "claude-sonnet-4-5-20250929",
1526
+ topP: 0.99,
1527
+ });
1528
+ const response = await model.invoke(
1529
+ "Please respond to this message simply with: Hello"
1530
+ );
1531
+ expect(response.content.length).toBeGreaterThan(0);
1532
1533
1534
1535
it("won't modify structured output content if outputVersion is set", async () => {
0 commit comments