-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Google Vertex AI gives error about SafetySetting #4797
Labels
bug
Something isn't working
Comments
Thank you for your feedback. We tested this on main and were not able to reproduce. Please reopen if you hit this and provide a trace. |
I see the same error when trying to run the example notebook from GCP Gen-AI. Edit: Upgrading the pip packages to the latest versions also results in the same error. Error trace below,
|
@sahilgupta2105 did you manage to have a fix for this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
Changes in LangChain have broken the
langchain-google-vertexai
package, resulting in error:This is related to langchain-ai/langchain-google#610 (comment) and langchain-ai/langchain-google#613 , so presumably Langflow simply has a bad dependency.
Reproduction
[project]
name = "test"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"ipykernel>=6.29.5",
"ipywidgets>=8.1.5",
"python-dotenv>=1.0.1",
"pypdf>=5.1.0",
"langchain-core>=0.3.20",
"langchain-google-vertexai>=2.0.7",
]
from langchain_google_vertexai import VertexAI
model = VertexAI(model_name="gemini-1.5-flash-001")
Expected behavior
There should be no error.
Who can help?
No response
Operating System
Windows
Langflow Version
1.1.0
Python Version
None
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered: