https://promptfoo.dev/ logo
Block settings (BLOCK_ONLY_HIGH etc...) for Gemini...
# ❓|questions
c
Does anyone know how to set these within Promptfoo yaml?
i
Sorry I missed this q @chuckclaus. These can be set by
config.safetySettings
under the provider. For example:
Copy code
yaml
- id: vertex:gemini-pro
  config:
    safetySettings:
      - category: HARM_CATEGORY_HARASSMENT
        threshold: BLOCK_ONLY_HIGH
      - category: HARM_CATEGORY_VIOLENCE
        threshold: BLOCK_MEDIUM_AND_ABOVE
more details on google's SafetySetting API here: