Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Does the NodeJS SDK support TextGenerationModel

Hello community,

I am using the NodeJs SDK to make requests to the Vertex AI platform. Online in the Generative AI Studio, there are examples of the Python SDK which uses the TextGenerationModel. I am not finding any documentation in the NodeJS docs around the TextGenerationModel I can only find  the PredictionServiceClient.

This is a problem because both of these methods return different results. The Python Model and API return the response I want, but using the PredictionServiceClient in the NodeJS sdk returns a completely different response.

0 REPLIES 0