-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unable to use non-Gemini models through ChatVertexAI #5196
Comments
To address the issue of using Anthropic Claude 3 with LangChain.js, particularly with the Here's a concise guide to get you started:
This approach allows you to leverage Claude 3's capabilities within LangChain.js applications. For detailed implementation and examples, refer to the Keep in mind, this solution circumvents the
|
Similar to #2562 The issue is that Claude in Vertex AI is neither the same protocol as Gemini, nor quite the same as what is offered through Anthropic. So we need something that combines the two. Do-able, but hasn't risen in priority. My general thoughts about how to do this would be
The good news is that the authentication part is handled by default with the Connection classes. |
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I am trying to use ChatVertexAI with Anthropic Claude 3, but it seems this class only supports Gemini models and returns the above error message.
This appears to be a deliberate choice in the code:
langchainjs/libs/langchain-google-common/src/utils/common.ts
Lines 125 to 132 in b9d86b1
I've verified that using Claude and Vertex AI and Anthropics Vertex SDK works fine:
Output:
System Info
Platform: Mac
Node: 20.11.0
The text was updated successfully, but these errors were encountered: