@pydantic/genai-prices 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -2203,8 +2203,8 @@ Compared to other leading proprietary and open-weights models Command A delivers
2203
2203
  extractors: [
2204
2204
  {
2205
2205
  api_flavor: "default",
2206
- root: "UsageMetadata",
2207
- model_path: "model",
2206
+ root: "usageMetadata",
2207
+ model_path: "modelVersion",
2208
2208
  mappings: [
2209
2209
  {
2210
2210
  path: "promptTokenCount",
@@ -2212,10 +2212,35 @@ Compared to other leading proprietary and open-weights models Command A delivers
2212
2212
  required: !0
2213
2213
  },
2214
2214
  {
2215
- path: "cachedContentTokenCount",
2215
+ path: [
2216
+ "cacheTokensDetails",
2217
+ {
2218
+ type: "array-match",
2219
+ field: "modality",
2220
+ match: {
2221
+ equals: "TEXT"
2222
+ }
2223
+ },
2224
+ "tokenCount"
2225
+ ],
2216
2226
  dest: "cache_read_tokens",
2217
2227
  required: !1
2218
2228
  },
2229
+ {
2230
+ path: [
2231
+ "cacheTokensDetails",
2232
+ {
2233
+ type: "array-match",
2234
+ field: "modality",
2235
+ match: {
2236
+ equals: "AUDIO"
2237
+ }
2238
+ },
2239
+ "tokenCount"
2240
+ ],
2241
+ dest: "cache_audio_read_tokens",
2242
+ required: !1
2243
+ },
2219
2244
  {
2220
2245
  path: "candidatesTokenCount",
2221
2246
  dest: "output_tokens",