const model = new BedrockChat({ model: "anthropic.claude-v2", region: "us-east-1",});const res = await model.invoke([{ content: "Tell me a joke" }]);console.log(res); Copy
const model = new BedrockChat({ model: "anthropic.claude-v2", region: "us-east-1",});const res = await model.invoke([{ content: "Tell me a joke" }]);console.log(res);
Optional
Example