@@ -22,7 +22,7 @@ import Testing
2222struct ServerPromptTemplateIntegrationTests {
2323 private static let testConfigs : [ InstanceConfig ] = [
2424 . googleAI_v1beta,
25- // .vertexAI_v1beta, // Waiting for backend location propagation.
25+ . vertexAI_v1beta,
2626 . vertexAI_v1beta_global,
2727 ]
2828 private static let imageGenerationTestConfigs : [ InstanceConfig ] = [ . vertexAI_v1beta]
@@ -47,7 +47,7 @@ struct ServerPromptTemplateIntegrationTests {
4747 let model = FirebaseAI . componentInstance ( config) . templateGenerativeModel ( )
4848 let userName = " paul "
4949 let stream = try model. generateContentStream (
50- templateID: " greeting2 " ,
50+ templateID: " greeting-5 " ,
5151 inputs: [
5252 " name " : userName,
5353 " language " : " English " ,
@@ -63,19 +63,19 @@ struct ServerPromptTemplateIntegrationTests {
6363 }
6464
6565 @Test ( arguments: [
66- // templatePredict is only currently supported on Developer API.
6766 InstanceConfig . googleAI_v1beta,
67+ InstanceConfig . vertexAI_v1beta,
6868 ] )
6969 func generateImages( _ config: InstanceConfig ) async throws {
7070 let imagenModel = FirebaseAI . componentInstance ( config) . templateImagenModel ( )
71- let imagenPrompt = " A cat picture "
71+ let imagenPrompt = " firefly "
7272 let response = try await imagenModel. generateImages (
73- templateID: " generate-images2 " ,
73+ templateID: " image-generation-basic " ,
7474 inputs: [
7575 " prompt " : imagenPrompt,
7676 ]
7777 )
78- #expect( response. images. count == 3 )
78+ #expect( response. images. count == 4 )
7979 }
8080
8181 @Test ( arguments: testConfigs)
0 commit comments