HarmBlockThreshold Enumeration
Block at and beyond a specified harm probability.
Namespace: GenerativeAI.TypesAssembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
public enum HarmBlockThreshold
HARM_BLOCK_THRESHOLD_UNSPECIFIED | 0 |
Threshold is unspecified.
|
BLOCK_LOW_AND_ABOVE | 1 |
Content with NEGLIGIBLE will be allowed.
|
BLOCK_MEDIUM_AND_ABOVE | 2 |
Content with NEGLIGIBLE and LOW will be allowed.
|
BLOCK_ONLY_HIGH | 3 |
Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.
|
BLOCK_NONE | 4 |
All content will be allowed.
|
OFF | 5 |
Turn off the safety filter.
|