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 {
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
You can’t perform that action at this time.
0 commit comments