How can I use "Claude 3 Sonnet" in GoogleVertexAI? #4913
Replies: 1 comment
-
Hey there @kyawthetkt! 🚀 Great to see you diving into the depths of LangChain with Claude 3 Sonnet. Let's make some digital poetry together! How's everything going on your end since our last chat? Based on the context provided, it seems like you're on the right track with using the The Here's how you can adjust your code: const model = new GoogleVertexAI({
temperature: 0.2,
authOptions: {
credentials: await getGoogleAuthCredentails("any")
},
model: "model-id-for-claude-3-sonnet" // replace this with the actual model ID
}); Then, you can use the const data = await model.invoke("Send me a recipe for banana bread."); Please replace If you're still having trouble, please provide more details about the error message you're seeing or the behavior you're experiencing. This will help me provide a more accurate solution. For more information, you can refer to the LangChain JS GoogleVertexAI example and the LangChain JS GoogleVertexAI source code. Sources
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I am trying to use Claude 3 Sonnet in Langchain GoogleVertexAI?
System Info
Platform - linux
Node Version - 18.12.1
NPM - 9.8.1
Beta Was this translation helpful? Give feedback.
All reactions