-
Notifications
You must be signed in to change notification settings - Fork 15.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
PydanticUndefinedAnnotation: name 'SafetySetting' is not defined using ChatVertexAI #28271
Comments
I have the same issue. No resolution whatsoever. |
It can be resolved by downgrading to pydantic==2.9.0 |
I am also having this problem, no changes in pinned dependencies but suddenly my container is failing. I can replicate this consistenly on both This minimal Dockerfile demonstrates the issue:
|
See langchain-ai/langchain-google#610 (comment) for more details. TL;DR: Upgrade back to 2.9 to avoid the issue. But do not that the 2.10 release revealed what could be a genuine bug in the |
@k3ybladewielder @Viicos - we experienced the same issue. Would you happen to the have the bug link open within the langchain-google? I notcied langchain-ai/langchain-google#610 is closed. |
The original author closed it but it was mentioned that it should be kept open. I do not maintain the library so we'll have to wait for them to reopen it again. In the meanwhile you can probably subscribe to the closed issue. I'm currently working on a fix. |
same |
…rtexAI. Per langchain-ai/langchain#28271, the fix is to pin pydantic to 2.9.0.
…rtexAI. Per langchain-ai/langchain#28271, the fix is to pin pydantic to 2.9.0.
This resolved the issue. Thanks. |
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Using the exact example from documentation the following error occur
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: