Open KnightChaser opened 10 months ago
Sorry for the late reply; yes, this sounds right. We'll be working on exposing additional adjustments. Which ones are you particularly interested in?
Well, I was just curious about the difference and the real code. I just wanted to turn everything on and off, just out of my curiosity... but currently I'm not working with Google's Gemini API in Go language. Thanks for reply.
We are encountering the same problem and, so far, we have only been able to set up 4 out of 11 safe settings.
According to the official documentation, the
type HarmCategory
saysThese categories cover various kinds of harms that developers may wish to adjust.
and it enumerates 11 categories like below.However, currently, I can only adjust 4 parameters among them as below, not corresponding to the annotation in the source code or an explanation of the SDK document, and I receive a
400
error if I add more adjustments for other defined categories inHarmCategory int32
likegenai.HarmCategoryMedical
. Can I get some explanation or advice about this? I wonder if I misunderstood about this feature.Thanks is advance!