File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,10 @@ extension GenerateContentResponse.UsageMetadata: Decodable {
346
346
public init ( from decoder: any Decoder ) throws {
347
347
let container = try decoder. container ( keyedBy: CodingKeys . self)
348
348
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
350
353
candidatesTokenCount =
351
354
try container. decodeIfPresent ( Int . self, forKey: . candidatesTokenCount) ?? 0
352
355
totalTokenCount = try container. decodeIfPresent ( Int . self, forKey: . totalTokenCount) ?? 0
You can’t perform that action at this time.
0 commit comments