You can use safety settings to adjust the likelihood of getting responses that may be considered harmful. By default, safety settings block content with medium and/or high probability of being unsafe content across all dimensions.
Learn more about safety settings in the Google Cloud documentation.
Here's how to set one safety setting:
You can also set more than one safety setting: