Skip to content

Commit c9689ae

Browse files
committed
Remove gemini safety
1 parent 106ce79 commit c9689ae

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,14 @@ Use the file URL returned from the snippet above.
18261826
"Text",
18271827
"Image"
18281828
]
1829-
)
1829+
),
1830+
safetySettings: [
1831+
.init(category: .dangerousContent, threshold: .none),
1832+
.init(category: .civicIntegrity, threshold: .none),
1833+
.init(category: .harassment, threshold: .none),
1834+
.init(category: .hateSpeech, threshold: .none),
1835+
.init(category: .sexuallyExplicit, threshold: .none)
1836+
]
18301837
)
18311838
18321839
do {

0 commit comments

Comments
 (0)