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

Gemini Vertex AI - 1.0 Pro - NodeJS SDK throws error (reading 'role' )

Hello Community,

We have been developing a chat bot for booking clinic appointments using Gemini 1.0 Pro + Vertex AI. It was working great. But recent times (in the last 3 days), the bot simply throws error when using sendMessage feature.

`Cannot read properties of undefined ( reading 'role' )`. Looks like google has recently updated the policies related to terms/phrases/words related to Medical and Clinical conversation.

Can someone confirm this and also possible suggest how to overcome this. This issue happens frequently when the user asks for location, address, contact number, working hours etc.

Regards
Nirmal

0 0 758
0 REPLIES 0