You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unexpected behaviorfield "credentials" not yet prepared so type is still a ForwardRef, you might need to call VertexAI.update_forward_refs(). seems to only appear if you pass in any credenitial valid or invalid to the vertexai wrapper from langchain.
The error
This code should not throw field "credentials" not yet prepared so type is still a ForwardRef, you might need to call VertexAI.update_forward_refs().. It should either not throw any errors, if the credentials, project_Id, and location are correct. Or, if there is an issue with one of params, it should throw a specific error from the vertexai.init call below but it doesn't seem to be reaching it if a credential is passed in.
# Fixed passing creds to VertexAI LLM
Fixes#5279
It looks like we should drop a type annotation for Credentials.
Co-authored-by: Leonid Kuligin <[email protected]>
# Fixed passing creds to VertexAI LLM
Fixeslangchain-ai#5279
It looks like we should drop a type annotation for Credentials.
Co-authored-by: Leonid Kuligin <[email protected]>
System Info
langchain==0.0.180
google-cloud-aiplatform==1.25.0
Have Google Cloud CLI and ran and logged in using
gcloud auth login
Running locally and online in Google Colab
Who can help?
@hwchase17 @hwchase17 @agola11
Information
Related Components
Reproduction
https://colab.research.google.com/drive/19QGMptiCn49fu4i5ZQ0ygfR74ktQFQlb?usp=sharing
Unexpected behavior
field "credentials" not yet prepared so type is still a ForwardRef, you might need to call VertexAI.update_forward_refs().
seems to only appear if you pass in any credenitial valid or invalid to the vertexai wrapper from langchain.The error
This code should not throw
field "credentials" not yet prepared so type is still a ForwardRef, you might need to call VertexAI.update_forward_refs().
. It should either not throw any errors, if the credentials, project_Id, and location are correct. Or, if there is an issue with one of params, it should throw a specific error from thevertexai.init
call below but it doesn't seem to be reaching it if a credential is passed in.The text was updated successfully, but these errors were encountered: