Vertex AI - generateContentStream
aggregated output undefined
#8566
Labels
generateContentStream
aggregated output undefined
#8566
Operating System
macOS Sonoma 14.1
Environment (if applicable)
NodeJS
Firebase SDK Version
main
Firebase SDK Product(s)
VertexAI
Project Tooling
N/A - @dlarocque may have more details
Detailed Problem Description
Vertex AI omits default values (
index == 0
) when serializing its responses as JSON but the SDK assumes theindex
value will always be there inaggregateResponses()
. See FirebaseExtended/vertexai-sdk-test-data#21 for more details (test failure).Steps and code to reproduce issue
The following snippet demonstrates the issue:
The text was updated successfully, but these errors were encountered: