I’m trying to use the chat by connecting the Gemini API, and I was able to verify the API, but I keep getting an error when using it. Where can I fix this?
{
"error": {
"code": 400,
"message": "* GenerateContentRequest.safety_settings[4]: element predicate failed: $.category in (HarmCategory.HARM_CATEGORY_HATE_SPEECH, HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT, HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT, HarmCategory.HARM_CATEGORY_HARASSMENT, HarmCategory.HARM_CATEGORY_CIVIC_INTEGRITY)\n",
"status": "INVALID_ARGUMENT"
}
}