Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anthropic[patch]: Release 0.2.3 #5934

Merged
merged 1 commit into from
Jun 28, 2024
Merged

anthropic[patch]: Release 0.2.3 #5934

merged 1 commit into from
Jun 28, 2024

Conversation

bracesproul
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Jun 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 28, 2024 10:14pm
langchainjs-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 28, 2024 10:14pm

@bracesproul bracesproul marked this pull request as ready for review June 28, 2024 22:15
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 28, 2024
@bracesproul bracesproul merged commit 25b173d into main Jun 28, 2024
21 of 23 checks passed
@bracesproul bracesproul deleted the release branch June 28, 2024 22:15
@Moe03
Copy link

Moe03 commented Jul 4, 2024

There's a little typo:

import { ChatAnthropicMessages } from "@langchain/anthropic";

const model = new ChatAnthropic({
  apiKey: process.env.ANTHROPIC_API_KEY,
  model: "claude-3-sonnet-20240229",
});
const response = await model.stream(new HumanMessage("Hello world!"));

Should be

import { ChatAnthropicMessages } from "@langchain/anthropic";

const model = new ChatAnthropic({
  apiKey: process.env.ANTHROPIC_API_KEY,
  model: "claude-3-sonnet-20240229",
});
const response = await model.stream([new HumanMessage("Hello world!")]);

just missing the array brackets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants