@@ -51,8 +51,8 @@ struct GenerateContentIntegrationTests {
5151 ( InstanceConfig . vertexAI_v1beta, ModelNames . gemini2_5_FlashLite) ,
5252 ( InstanceConfig . vertexAI_v1beta_global, ModelNames . gemini2_5_FlashLite) ,
5353 ( InstanceConfig . vertexAI_v1beta_global_appCheckLimitedUse, ModelNames . gemini2_5_FlashLite) ,
54- ( InstanceConfig . googleAI_v1beta, ModelNames . gemini3_1_FlashLitePreview ) ,
55- ( InstanceConfig . googleAI_v1beta_appCheckLimitedUse, ModelNames . gemini3_1_FlashLitePreview ) ,
54+ ( InstanceConfig . googleAI_v1beta, ModelNames . gemini3_1_FlashLite ) ,
55+ ( InstanceConfig . googleAI_v1beta_appCheckLimitedUse, ModelNames . gemini3_1_FlashLite ) ,
5656 ( InstanceConfig . googleAI_v1beta, ModelNames . gemma4_31B) ,
5757 ( InstanceConfig . googleAI_v1beta_freeTier, ModelNames . gemma4_31B) ,
5858 // Note: The following configs are commented out for easy one-off manual testing.
@@ -105,7 +105,7 @@ struct GenerateContentIntegrationTests {
105105
106106 @Test (
107107 " Generate an enum and provide a system instruction " ,
108- arguments: InstanceConfig . allConfigs
108+ arguments: InstanceConfig . defaultConfigs
109109 )
110110 func generateContentEnum( _ config: InstanceConfig ) async throws {
111111 let model = FirebaseAI . componentInstance ( config) . generativeModel (
@@ -159,47 +159,18 @@ struct GenerateContentIntegrationTests {
159159 ( . vertexAI_v1beta_global, ModelNames . gemini2_5_Pro, ThinkingConfig (
160160 thinkingBudget: 32768 , includeThoughts: true
161161 ) ) ,
162- ( . googleAI_v1beta, ModelNames . gemini2_5_Flash , ThinkingConfig ( thinkingBudget: 0 ) ) ,
163- ( . googleAI_v1beta, ModelNames . gemini2_5_Flash , ThinkingConfig ( thinkingBudget: 24576 ) ) ,
164- ( . googleAI_v1beta, ModelNames . gemini2_5_Flash , ThinkingConfig (
162+ ( . googleAI_v1beta, ModelNames . gemini2_5_FlashLite , ThinkingConfig ( thinkingBudget: 0 ) ) ,
163+ ( . googleAI_v1beta, ModelNames . gemini2_5_FlashLite , ThinkingConfig ( thinkingBudget: 24576 ) ) ,
164+ ( . googleAI_v1beta, ModelNames . gemini2_5_FlashLite , ThinkingConfig (
165165 thinkingBudget: 24576 , includeThoughts: true
166166 ) ) ,
167- ( . googleAI_v1beta, ModelNames . gemini2_5_Pro, ThinkingConfig ( thinkingBudget: 128 ) ) ,
168- ( . googleAI_v1beta, ModelNames . gemini2_5_Pro, ThinkingConfig ( thinkingBudget: 32768 ) ) ,
169- ( . googleAI_v1beta, ModelNames . gemini2_5_Pro, ThinkingConfig (
170- thinkingBudget: 32768 , includeThoughts: true
171- ) ) ,
172- (
173- . googleAI_v1beta,
174- ModelNames . gemini3_1_FlashLitePreview,
175- ThinkingConfig ( thinkingLevel: . minimal)
176- ) ,
177- (
178- . googleAI_v1beta,
179- ModelNames . gemini3_1_FlashLitePreview,
180- ThinkingConfig ( thinkingLevel: . low)
181- ) ,
182- (
183- . googleAI_v1beta,
184- ModelNames . gemini3_1_FlashLitePreview,
185- ThinkingConfig ( thinkingLevel: . medium)
186- ) ,
187- (
188- . googleAI_v1beta,
189- ModelNames . gemini3_1_FlashLitePreview,
190- ThinkingConfig ( thinkingLevel: . high)
191- ) ,
192- (
193- . googleAI_v1beta,
194- ModelNames . gemini3_1_FlashLitePreview,
195- ThinkingConfig ( thinkingBudget: 0 )
196- ) ,
197- (
198- . googleAI_v1beta,
199- ModelNames . gemini3_1_FlashLitePreview,
200- ThinkingConfig ( thinkingBudget: 32768 )
201- ) ,
202- ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLitePreview, ThinkingConfig (
167+ ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLite, ThinkingConfig ( thinkingLevel: . minimal) ) ,
168+ ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLite, ThinkingConfig ( thinkingLevel: . low) ) ,
169+ ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLite, ThinkingConfig ( thinkingLevel: . medium) ) ,
170+ ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLite, ThinkingConfig ( thinkingLevel: . high) ) ,
171+ ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLite, ThinkingConfig ( thinkingBudget: 0 ) ) ,
172+ ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLite, ThinkingConfig ( thinkingBudget: 32768 ) ) ,
173+ ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLite, ThinkingConfig (
203174 thinkingBudget: 32768 , includeThoughts: true
204175 ) ) ,
205176 // Note: The following configs are commented out for easy one-off manual testing.
@@ -304,16 +275,12 @@ struct GenerateContentIntegrationTests {
304275 ( . vertexAI_v1beta_global, ModelNames . gemini2_5_Pro, ThinkingConfig (
305276 thinkingBudget: - 1 , includeThoughts: true
306277 ) ) ,
307- ( . googleAI_v1beta, ModelNames . gemini2_5_Flash , ThinkingConfig ( thinkingBudget: - 1 ) ) ,
308- ( . googleAI_v1beta, ModelNames . gemini2_5_Flash , ThinkingConfig (
278+ ( . googleAI_v1beta, ModelNames . gemini2_5_FlashLite , ThinkingConfig ( thinkingBudget: - 1 ) ) ,
279+ ( . googleAI_v1beta, ModelNames . gemini2_5_FlashLite , ThinkingConfig (
309280 thinkingBudget: - 1 , includeThoughts: true
310281 ) ) ,
311- ( . googleAI_v1beta, ModelNames . gemini2_5_Pro, ThinkingConfig ( thinkingBudget: - 1 ) ) ,
312- ( . googleAI_v1beta, ModelNames . gemini2_5_Pro, ThinkingConfig (
313- thinkingBudget: - 1 , includeThoughts: true
314- ) ) ,
315- ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLitePreview, ThinkingConfig ( thinkingBudget: - 1 ) ) ,
316- ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLitePreview, ThinkingConfig (
282+ ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLite, ThinkingConfig ( thinkingBudget: - 1 ) ) ,
283+ ( . googleAI_v1beta, ModelNames . gemini3_1_FlashLite, ThinkingConfig (
317284 thinkingBudget: - 1 , includeThoughts: true
318285 ) ) ,
319286 ] as [ ( InstanceConfig , String , ThinkingConfig ) ]
@@ -549,11 +516,11 @@ struct GenerateContentIntegrationTests {
549516
550517 @Test (
551518 " generateContent with Google Search returns grounding metadata " ,
552- arguments: InstanceConfig . allConfigs
519+ arguments: InstanceConfig . defaultConfigs
553520 )
554521 func generateContent_withGoogleSearch_succeeds( _ config: InstanceConfig ) async throws {
555522 let model = FirebaseAI . componentInstance ( config) . generativeModel (
556- modelName: ModelNames . gemini2_5_Flash ,
523+ modelName: ModelNames . gemini3_1_FlashLite ,
557524 tools: [ . googleSearch( ) ]
558525 )
559526 let prompt = " What is the weather in Toronto today? "
@@ -588,11 +555,11 @@ struct GenerateContentIntegrationTests {
588555
589556 @Test (
590557 " generateContent with URL Context " ,
591- arguments: InstanceConfig . allConfigs
558+ arguments: InstanceConfig . defaultConfigs
592559 )
593560 func generateContent_withURLContext_succeeds( _ config: InstanceConfig ) async throws {
594561 let model = FirebaseAI . componentInstance ( config) . generativeModel (
595- modelName: ModelNames . gemini2_5_Flash ,
562+ modelName: ModelNames . gemini3_1_FlashLite ,
596563 tools: [ . urlContext( ) ]
597564 )
598565 let url = " https://developers.googleblog.com/en/introducing-gemma-3-270m/ "
@@ -607,10 +574,10 @@ struct GenerateContentIntegrationTests {
607574 #expect( retrievedURL == URL ( string: url) )
608575 }
609576
610- @Test ( arguments: InstanceConfig . allConfigs )
577+ @Test ( arguments: InstanceConfig . defaultConfigs )
611578 func generateContent_codeExecution_succeeds( _ config: InstanceConfig ) async throws {
612579 let model = FirebaseAI . componentInstance ( config) . generativeModel (
613- modelName: ModelNames . gemini2_5_FlashLite ,
580+ modelName: ModelNames . gemini3_1_FlashLite ,
614581 generationConfig: generationConfig,
615582 tools: [ . codeExecution( ) ]
616583 )
@@ -640,11 +607,8 @@ struct GenerateContentIntegrationTests {
640607
641608 @Test ( arguments: [
642609 ( InstanceConfig . vertexAI_v1beta, ModelNames . gemini2_5_FlashLite) ,
643- ( InstanceConfig . vertexAI_v1beta_global, ModelNames . gemini3_1_FlashLitePreview) ,
644- (
645- InstanceConfig . vertexAI_v1beta_global_appCheckLimitedUse,
646- ModelNames . gemini3_1_FlashLitePreview
647- ) ,
610+ ( InstanceConfig . vertexAI_v1beta_global, ModelNames . gemini3_1_FlashLite) ,
611+ ( InstanceConfig . vertexAI_v1beta_global_appCheckLimitedUse, ModelNames . gemini3_1_FlashLite) ,
648612 ( InstanceConfig . googleAI_v1beta, ModelNames . gemini2_5_FlashLite) ,
649613 ( InstanceConfig . googleAI_v1beta_appCheckLimitedUse, ModelNames . gemini2_5_FlashLite) ,
650614 ( InstanceConfig . googleAI_v1beta, ModelNames . gemma4_31B) ,
@@ -778,7 +742,7 @@ struct GenerateContentIntegrationTests {
778742 @Test ( arguments: InstanceConfig . appCheckNotConfiguredConfigs)
779743 func generateContent_appCheckNotConfigured_shouldFail( _ config: InstanceConfig ) async throws {
780744 let model = FirebaseAI . componentInstance ( config) . generativeModel (
781- modelName: ModelNames . gemini2_5_Flash
745+ modelName: ModelNames . gemini3_1_FlashLite
782746 )
783747 let prompt = " Where is Google headquarters located? Answer with the city name only. "
784748
0 commit comments