We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.civicIntegrity
generateImage
1 parent b030a13 commit b9bf3adCopy full SHA for b9bf3ad
FirebaseAI/Tests/TestApp/Tests/Integration/GenerateContentIntegrationTests.swift
@@ -209,6 +209,11 @@ struct GenerateContentIntegrationTests {
209
topK: 1,
210
responseModalities: [.text, .image]
211
)
212
+ let safetySettings = safetySettings.filter {
213
+ // HARM_CATEGORY_CIVIC_INTEGRITY is deprecated in Vertex AI but only rejected when using the
214
+ // 'gemini-2.0-flash-preview-image-generation' model.
215
+ $0.harmCategory != .civicIntegrity
216
+ }
217
let model = FirebaseAI.componentInstance(config).generativeModel(
218
modelName: ModelNames.gemini2FlashPreviewImageGeneration,
219
generationConfig: generationConfig,
0 commit comments