I’m using Vertex AI API with flash 2.5 model version 4-17 and running into an issue where I get the following error:
{‘code’: 400, ‘message’: ‘Request contains an invalid argument.’, ‘status’: ‘INVALID_ARGUMENT’}
I’ve traced it back to a list of enums in my structured output. When I reduce the list to just 3 options, everything works fine, but with ~100 options, it fails. The input size is around 6000 tokens. I also tried switching from enums to literals, but the error still occurs.
Has anyone encountered this before or found a workaround?