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

fix(google-common, google-vertexai): Invalid URL for embeddings model #7406

Merged

Conversation

afirstenberg
Copy link
Contributor

The URL path for Vertex AI typically includes a publisher name.
For LLMs, this publisher name is determined based on model name.
For embeddings, the publisher name never matched, so was assigned a name of "unknown".

Oddly enough, in some regions and with some embedding models - this was fine. But in other regions, this returned an error.

Fix is to make sure that all embedding models (at least for now) are considered published by Google.

Fixes #7390

Copy link

vercel bot commented Dec 19, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Dec 19, 2024 10:19pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Dec 19, 2024 10:19pm

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. auto:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Dec 19, 2024
Copy link
Collaborator

@jacoblee93 jacoblee93 left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@dosubot dosubot bot added the lgtm PRs that are ready to be merged as-is label Dec 19, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Dec 19, 2024
@jacoblee93 jacoblee93 merged commit a7bc916 into langchain-ai:main Dec 19, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature lgtm PRs that are ready to be merged as-is size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VertexAIEmbeddings don't work with europe-west9 location
2 participants