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 @@ -357,7 +357,10 @@ extension GenerateContentResponse.UsageMetadata: Decodable {
357
357
public init ( from decoder: any Decoder ) throws {
358
358
let container = try decoder. container ( keyedBy: CodingKeys . self)
359
359
promptTokenCount = try container. decodeIfPresent ( Int . self, forKey: . promptTokenCount) ?? 0
360
- cachedContentTokenCount = try container. decodeIfPresent ( Int . self, forKey: . cacheContentTokenCount) ?? 0
360
+ cachedContentTokenCount = try container. decodeIfPresent (
361
+ Int . self,
362
+ forKey: . cacheContentTokenCount
363
+ ) ?? 0
361
364
candidatesTokenCount =
362
365
try container. decodeIfPresent ( Int . self, forKey: . candidatesTokenCount) ?? 0
363
366
thoughtsTokenCount = try container. decodeIfPresent ( Int . self, forKey: . thoughtsTokenCount) ?? 0
You can’t perform that action at this time.
0 commit comments