Skip to content

Commit 8024990

Browse files
committed
style
1 parent b5e4f0b commit 8024990

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

FirebaseAI/Sources/GenerateContentResponse.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,10 @@ extension GenerateContentResponse.UsageMetadata: Decodable {
346346
public init(from decoder: any Decoder) throws {
347347
let container = try decoder.container(keyedBy: CodingKeys.self)
348348
promptTokenCount = try container.decodeIfPresent(Int.self, forKey: .promptTokenCount) ?? 0
349-
cachedContentTokenCount = try container.decodeIfPresent(Int.self, forKey: .cacheContentTokenCount) ?? 0
349+
cachedContentTokenCount = try container.decodeIfPresent(
350+
Int.self,
351+
forKey: .cacheContentTokenCount
352+
) ?? 0
350353
candidatesTokenCount =
351354
try container.decodeIfPresent(Int.self, forKey: .candidatesTokenCount) ?? 0
352355
totalTokenCount = try container.decodeIfPresent(Int.self, forKey: .totalTokenCount) ?? 0

0 commit comments

Comments
 (0)