Vertex AI — NodeJS SDK — Error: 3 INVALID_ARGUMENT: 0 is out of supported range [1, 1025);
I’m following the example for calling the predict endpoint as listed in the official Google Cloud Documentation, but got an error:
Error:
Error: 3 INVALID_ARGUMENT: 0 is out of supported range [1, 1025); for the maximum number of tokens.
at callErrorFromStatus (webpack-internal:///(rsc)/./node_modules/@grpc/grpc-js/build/src/call.js:31:19)
at Object.onReceiveStatus…