nodejs-docs-samples icon indicating copy to clipboard operation
nodejs-docs-samples copied to clipboard

error in ai-platform/snippets/predict-custom-trained-model.js

Open Camillo94 opened this issue 1 year ago • 0 comments

In which file did you encounter the issue?

ai-platform/snippets/predict-custom-trained-model.js

Did you change the file? If so, how?

I include my own string value: prompt, question etc const instance = { structValue: { fields: { Prompt:{stringValue:prompt}, Question: {stringValue: question}, Answer: {stringValue: answer}, Explanation: {stringValue: explanation}, }, }, };

Describe the issue

Error message: "Unhandled error Error: 3 INVALID_ARGUMENT: 0 is out of supported range [1, 1025); for the maximum number of tokens.

Camillo94 avatar Aug 22 '23 22:08 Camillo94