@pydantic/genai-prices 0.0.22 → 0.0.24

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
@@ -705,6 +705,16 @@ const ie = [
705
705
  dest: "input_tokens",
706
706
  required: !0
707
707
  },
708
+ {
709
+ path: "cache_creation_input_tokens",
710
+ dest: "input_tokens",
711
+ required: !1
712
+ },
713
+ {
714
+ path: "cache_read_input_tokens",
715
+ dest: "input_tokens",
716
+ required: !1
717
+ },
708
718
  {
709
719
  path: "cache_creation_input_tokens",
710
720
  dest: "cache_write_tokens",
@@ -2193,8 +2203,8 @@ Compared to other leading proprietary and open-weights models Command A delivers
2193
2203
  extractors: [
2194
2204
  {
2195
2205
  api_flavor: "default",
2196
- root: "UsageMetadata",
2197
- model_path: "model",
2206
+ root: "usageMetadata",
2207
+ model_path: "modelVersion",
2198
2208
  mappings: [
2199
2209
  {
2200
2210
  path: "promptTokenCount",
@@ -2202,10 +2212,35 @@ Compared to other leading proprietary and open-weights models Command A delivers
2202
2212
  required: !0
2203
2213
  },
2204
2214
  {
2205
- path: "cachedContentTokenCount",
2215
+ path: [
2216
+ "cacheTokensDetails",
2217
+ {
2218
+ type: "array-match",
2219
+ field: "modality",
2220
+ match: {
2221
+ equals: "TEXT"
2222
+ }
2223
+ },
2224
+ "tokenCount"
2225
+ ],
2206
2226
  dest: "cache_read_tokens",
2207
2227
  required: !1
2208
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
+ },
2209
2244
  {
2210
2245
  path: "candidatesTokenCount",
2211
2246
  dest: "output_tokens",
@@ -4297,7 +4332,7 @@ Compared to other leading proprietary and open-weights models Command A delivers
4297
4332
  equals: "gpt-5-nano"
4298
4333
  },
4299
4334
  {
4300
- equals: "gpt-5-nano-2025-04-14"
4335
+ starts_with: "gpt-5-nano-"
4301
4336
  }
4302
4337
  ]
4303
4338
  },