[FEATURE] New HarmCategory Added by GoogleGenerativeAI Last Week CIVIC
Python code example:
`model = genai.GenerativeModel(
model_name="gemini-1.5-flash-exp-0827",#gemini-1.5-pro-exp-0827
generation_config=generation_config,
safety_settings = Adjust safety settings
See https://ai.google.dev/gemini-api/docs/safety-settings
safety_settings={ HarmCategory.HARM_CATEGORY_HATE_SPEECH: HarmBlockThreshold.BLOCK_NONE, HarmCategory.HARM_CATEGORY_HARASSMENT: HarmBlockThreshold.BLOCK_NONE, HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: HarmBlockThreshold.BLOCK_NONE, HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE, HarmCategory.HARM_CATEGORY_CIVIC_INTEGRITY: HarmBlockThreshold.BLOCK_NONE, } `
Please add option for CIVIC Category. You can not see it in official Docs but my above code works fine., You can see this category in AI studio too, just not in docs yet.