diff --git a/FirebaseAI/Tests/TestApp/Tests/Integration/GenerateContentIntegrationTests.swift b/FirebaseAI/Tests/TestApp/Tests/Integration/GenerateContentIntegrationTests.swift index 885a6d980dd..d8bc9395d02 100644 --- a/FirebaseAI/Tests/TestApp/Tests/Integration/GenerateContentIntegrationTests.swift +++ b/FirebaseAI/Tests/TestApp/Tests/Integration/GenerateContentIntegrationTests.swift @@ -115,10 +115,11 @@ struct GenerateContentIntegrationTests { } @Test(arguments: [ - InstanceConfig.vertexV1Beta, - // TODO(andrewheard): Configs temporarily disabled due to backend issue. - // InstanceConfig.developerV1Beta, - // InstanceConfig.developerV1BetaStaging + // TODO(andrewheard): Vertex AI configs temporarily disabled to due empty SafetyRatings bug. + // InstanceConfig.vertexV1, + // InstanceConfig.vertexV1Beta, + InstanceConfig.developerV1Beta, + InstanceConfig.developerV1BetaStaging, InstanceConfig.developerV1BetaSpark, ]) func generateImage(_ config: InstanceConfig) async throws { diff --git a/FirebaseAI/Tests/TestApp/Tests/Integration/IntegrationTests.swift b/FirebaseAI/Tests/TestApp/Tests/Integration/IntegrationTests.swift index 9b62326dfd6..e61b5ed3470 100644 --- a/FirebaseAI/Tests/TestApp/Tests/Integration/IntegrationTests.swift +++ b/FirebaseAI/Tests/TestApp/Tests/Integration/IntegrationTests.swift @@ -190,12 +190,12 @@ final class IntegrationTests: XCTestCase { ModelContent(role: "function", parts: sumResponse), ]) - XCTAssertEqual(response.totalTokens, 24) + XCTAssertGreaterThan(response.totalTokens, 0) XCTAssertEqual(response.totalBillableCharacters, 71) XCTAssertEqual(response.promptTokensDetails.count, 1) let promptTokensDetails = try XCTUnwrap(response.promptTokensDetails.first) XCTAssertEqual(promptTokensDetails.modality, .text) - XCTAssertEqual(promptTokensDetails.tokenCount, 24) + XCTAssertEqual(promptTokensDetails.tokenCount, response.totalTokens) } func testCountTokens_appCheckNotConfigured_shouldFail() async throws { diff --git a/FirebaseAI/Tests/TestApp/Tests/Utilities/InstanceConfig.swift b/FirebaseAI/Tests/TestApp/Tests/Utilities/InstanceConfig.swift index a0f2279dbcb..86d024c7a87 100644 --- a/FirebaseAI/Tests/TestApp/Tests/Utilities/InstanceConfig.swift +++ b/FirebaseAI/Tests/TestApp/Tests/Utilities/InstanceConfig.swift @@ -51,9 +51,8 @@ struct InstanceConfig { vertexV1Staging, vertexV1Beta, vertexV1BetaStaging, - // TODO(andrewheard): Configs temporarily disabled due to backend issue: - // developerV1Beta, - // developerV1BetaStaging, + developerV1Beta, + developerV1BetaStaging, developerV1Spark, developerV1BetaSpark, ] @@ -63,9 +62,8 @@ struct InstanceConfig { vertexV1Staging, vertexV1Beta, vertexV1BetaStaging, - // TODO(andrewheard): Configs temporarily disabled due to backend issue: - // developerV1Beta, - // developerV1BetaStaging, + developerV1Beta, + developerV1BetaStaging, developerV1BetaSpark, ]