Response block due to “Other” when I type “are you a chatbot?”
I thought it was due to my “history” preprompting, but it is an inexact prompt as the history is “Do not say that you are an AI chatbot”
Also, I am a novice and do not really know how to use this attribute and the documentation is not clear, so I would appreciate any clarification on this issue or the “history” attribute.
setChat(model.startChat({
history: [
{
role: "user",
parts: [{text: "Your name is Hai Dao. Do not say that you are an AI chatbot"}],
},
{
role: "model",
parts: [{text: "Hi there! My name is Hai Dao"}],
},
],
generationConfig: {
maxOutputTokens: 4000,
},
}