@@ -67,7 +67,7 @@ public struct SafetyRating: Equatable, Hashable, Sendable {
67
67
@available ( iOS 15 . 0 , macOS 11 . 0 , macCatalyst 15 . 0 , tvOS 15 . 0 , watchOS 8 . 0 , * )
68
68
public struct SafetySetting {
69
69
/// Block at and beyond a specified ``SafetyRating/HarmProbability``.
70
- public enum BlockThreshold : String , Sendable {
70
+ public enum HarmBlockThreshold : String , Sendable {
71
71
// Content with `.negligible` will be allowed.
72
72
case blockLowAndAbove = " BLOCK_LOW_AND_ABOVE "
73
73
@@ -90,10 +90,10 @@ public struct SafetySetting {
90
90
public let harmCategory : HarmCategory
91
91
92
92
/// The threshold describing what content should be blocked.
93
- public let threshold : BlockThreshold
93
+ public let threshold : HarmBlockThreshold
94
94
95
95
/// Initializes a new safety setting with the given category and threshold.
96
- public init ( harmCategory: HarmCategory , threshold: BlockThreshold ) {
96
+ public init ( harmCategory: HarmCategory , threshold: HarmBlockThreshold ) {
97
97
self . harmCategory = harmCategory
98
98
self . threshold = threshold
99
99
}
@@ -153,7 +153,7 @@ extension HarmCategory: Codable {
153
153
}
154
154
155
155
@available ( iOS 15 . 0 , macOS 11 . 0 , macCatalyst 15 . 0 , tvOS 15 . 0 , watchOS 8 . 0 , * )
156
- extension SafetySetting . BlockThreshold : Encodable { }
156
+ extension SafetySetting . HarmBlockThreshold : Encodable { }
157
157
158
158
@available ( iOS 15 . 0 , macOS 11 . 0 , macCatalyst 15 . 0 , tvOS 15 . 0 , watchOS 8 . 0 , * )
159
159
extension SafetySetting : Encodable { }
0 commit comments