We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c94a89c commit c83919aCopy full SHA for c83919a
FirebaseAI/Tests/TestApp/Tests/Integration/GenerateContentIntegrationTests.swift
@@ -134,8 +134,7 @@ struct GenerateContentIntegrationTests {
134
#expect(text == "Blue")
135
136
let usageMetadata = try #require(response.usageMetadata)
137
- if config == InstanceConfig.googleAI_v1beta ||
138
- config == InstanceConfig.googleAI_v1beta_appCheckLimitedUse {
+ if case .googleAI = config.apiConfig.service {
139
#expect(usageMetadata.promptTokenCount.isEqual(to: 11, accuracy: tokenCountAccuracy))
140
#expect(usageMetadata.candidatesTokensDetails.count == 0)
141
} else {
0 commit comments