How to get metadata from VertexAI of GCP? #27600
Replies: 1 comment
-
Use ChatVertexAI, not VertexAI |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I'm trying to use VertexAI from Google but it seems different to the GoogleGenAI
If I use ChatGoogleGenerativeAI with langchain, it returns <class 'langchain_core.messages.ai.AIMessage'> data type and includes content, response_metadata and usage_metadata
But in VertexAI with langchain, it returns only <class 'str'> type data.
I would like to get all metadata from VertexAI.
System Info
langchain 0.3.4
langchain-community 0.3.3
langchain-core 0.3.12
langchain-google-genai 2.0.1
langchain-google-vertexai 2.0.5
langchain-openai 0.2.3
langchain-text-splitters 0.3.0
Beta Was this translation helpful? Give feedback.
All reactions