Skip to content

fix(langchain): vertex ai model name pulled from hub #8159

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

Merged
merged 2 commits into from
May 14, 2025

Conversation

anadi45
Copy link
Contributor

@anadi45 anadi45 commented May 11, 2025

Fixes # (#8136)

  1. ChatGoogleVertexAI was incorrect and should be ChatVertexAI
  2. Fixed langchain doc urls

Copy link

vercel bot commented May 11, 2025

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

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview May 11, 2025 1:55pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) May 11, 2025 1:55pm

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 11, 2025
@@ -106,7 +106,7 @@ export function generateModelImportMap(
importMapKey = "chat_models__anthropic";
} else if (modelLcName === "ChatAzureOpenAI") {
importMapKey = "chat_models__openai";
} else if (modelLcName === "ChatGoogleVertexAI") {
} else if (modelLcName === "ChatVertexAI") {
Copy link
Collaborator

@benjamincburns benjamincburns May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably neither here nor there w.r.t. this change, but interesting that we don't support vertex web here (cc @afirstenberg).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both of them use the same lc_name and Class name, and python doesn't distinguish between the two.

Certainly part of a much bigger discussion that we need to have at some point.

@benjamincburns benjamincburns merged commit b43b715 into langchain-ai:main May 14, 2025
38 checks passed
@benjamincburns
Copy link
Collaborator

Thanks for the fix, @anadi45!

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

Successfully merging this pull request may close these issues.

3 participants