The PredictRequest has in instances field that is a repeated protobufs.struct.Value.
No matter what you pass as instances here, the result is "Value must be iterable".
Debugging found that if you pass a list/sequence it gets converted to a struct_pb2.ListValue but the field is a repeated struct._pb2.Value so that fails.
We're launching an instance of this prediction service:
google/ai/generativelanguage/v1main/prediction_service.proto;l=77
The PredictRequest has in
instances
field that is a repeatedprotobufs.struct.Value
.No matter what you pass as instances here, the result is "
Value
must be iterable".Debugging found that if you pass a list/sequence it gets converted to a
struct_pb2.ListValue
but the field is a repeatedstruct._pb2.Value
so that fails.Steps to reproduce
https://colab.sandbox.google.com/drive/1grGEJgXiZyvrJCZKvsFmuLyEeXc65vai?resourcekey=0-lTxTMUz7WTDYmV-CS9UHOQ#scrollTo=f4HxrpopJQ-C
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!