@@ -30,8 +30,8 @@ final class IntegrationTests: XCTestCase {
30
30
parts: " You are a friendly and helpful assistant. "
31
31
)
32
32
let safetySettings = [
33
- SafetySetting ( harmCategory: . harassment, threshold: . blockLowAndAbove) ,
34
- SafetySetting ( harmCategory: . hateSpeech, threshold: . blockLowAndAbove) ,
33
+ SafetySetting ( harmCategory: . harassment, threshold: . blockLowAndAbove, method : . probability ) ,
34
+ SafetySetting ( harmCategory: . hateSpeech, threshold: . blockLowAndAbove, method : . severity ) ,
35
35
SafetySetting ( harmCategory: . sexuallyExplicit, threshold: . blockLowAndAbove) ,
36
36
SafetySetting ( harmCategory: . dangerousContent, threshold: . blockLowAndAbove) ,
37
37
SafetySetting ( harmCategory: . civicIntegrity, threshold: . blockLowAndAbove) ,
@@ -89,11 +89,11 @@ final class IntegrationTests: XCTestCase {
89
89
modelName: " gemini-1.5-pro " ,
90
90
generationConfig: generationConfig,
91
91
safetySettings: [
92
- SafetySetting ( harmCategory: . harassment, threshold: . blockLowAndAbove) ,
92
+ SafetySetting ( harmCategory: . harassment, threshold: . blockLowAndAbove, method : . severity ) ,
93
93
SafetySetting ( harmCategory: . hateSpeech, threshold: . blockMediumAndAbove) ,
94
94
SafetySetting ( harmCategory: . sexuallyExplicit, threshold: . blockOnlyHigh) ,
95
95
SafetySetting ( harmCategory: . dangerousContent, threshold: . blockNone) ,
96
- SafetySetting ( harmCategory: . civicIntegrity, threshold: . off) ,
96
+ SafetySetting ( harmCategory: . civicIntegrity, threshold: . off, method : . probability ) ,
97
97
] ,
98
98
toolConfig: . init( functionCallingConfig: . auto( ) ) ,
99
99
systemInstruction: systemInstruction
0 commit comments