defaultSafetySettings property
List<SafetySetting>
get
defaultSafetySettings
Get default safety settings (permissive for development)
Implementation
static List<SafetySetting> get defaultSafetySettings => [
const SafetySetting(
category: HarmCategory.harmCategoryHarassment,
threshold: HarmBlockThreshold.blockOnlyHigh,
),
const SafetySetting(
category: HarmCategory.harmCategoryHateSpeech,
threshold: HarmBlockThreshold.blockOnlyHigh,
),
const SafetySetting(
category: HarmCategory.harmCategorySexuallyExplicit,
threshold: HarmBlockThreshold.blockOnlyHigh,
),
const SafetySetting(
category: HarmCategory.harmCategoryDangerousContent,
threshold: HarmBlockThreshold.blockOnlyHigh,
),
];