Request: ChatVertexAI
preserving grounding_metadata
#14548
Labels
🤖:improvement
Medium size change to existing code to handle new use-cases
Ɑ: models
Related to LLMs or chat model modules
Feature request
As of
langchain==0.0.348
inChatVertexAI
here:vertexai.language_models.ChatSession.send_message
returns avertexai.language_models.MultiCandidateTextGenerationResponse
responseChatVertexAI
throws out the response'sgrounding_metadata
, only preserving thetext
The request is to not discard this useful metadata
Motivation
I am trying to use the
response.grounding_metadata.citations
in my own codeYour contribution
I will open a PR to make this:
So the raw response remains accessible
The text was updated successfully, but these errors were encountered: