GoogleCloudPlatform / firebase-extensions

Apache License 2.0
74 stars 36 forks source link

(Chatbot with Gemini) Standard response to sensitive prompts. #448

Open Fritswp opened 5 months ago

Fritswp commented 5 months ago

Currently when a user types a sensitive prompt Firestore returns: status

(map)

error "An error occurred while processing the provided message, Cannot read properties of undefined (reading 'content')" (string)

state "ERROR".

It would be great if there was a way to return a standard prompt to inform the user that the chatbot is unable to answer the prompt. I do not want the chatbot be able to answer sensitive prompts but would like a way to inform the user it is unable to.