metergraph-core 0.2.7__tar.gz → 0.2.9__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metergraph-core
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: Reusable MeterGraph catalog and deterministic billing engine
5
5
  License-Expression: Apache-2.0
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "metergraph-core"
3
- version = "0.2.7"
3
+ version = "0.2.9"
4
4
  description = "Reusable MeterGraph catalog and deterministic billing engine"
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -251,7 +251,10 @@ models:
251
251
  aliases:
252
252
  - {provider: openai, alias: gpt-5.4-nano, channel: openai-api}
253
253
  - {provider: openai, alias: gpt-5.4-nano-2026-03-17, channel: openai-api}
254
- - {provider: openai, alias: openai/gpt-5.4-nano, channel: openai-api}
254
+ - provider: openai
255
+ alias: openai/gpt-5.4-nano
256
+ channel: vercel-ai-gateway
257
+ rules: {input_includes_cache_read: true, input_includes_cache_write: true}
255
258
  prices:
256
259
  - channel: openai-api
257
260
  region: global
@@ -264,6 +267,13 @@ models:
264
267
  rules:
265
268
  input_includes_cache_read: true
266
269
  source_url: https://developers.openai.com/api/docs/models/gpt-5.4-nano
270
+ - channel: vercel-ai-gateway
271
+ region: global
272
+ effective_from: "2026-03-17"
273
+ input_per_mtok: 0.20
274
+ output_per_mtok: 1.25
275
+ cache_read_per_mtok: 0.02
276
+ source_url: https://vercel.com/ai-gateway/models/gpt-5.4-nano/providers
267
277
 
268
278
  - canonical_id: openai/gpt-4o-mini
269
279
  publisher: openai
@@ -649,6 +659,10 @@ models:
649
659
  aliases:
650
660
  - {provider: google, alias: gemini-2.5-flash, channel: google-api}
651
661
  - {provider: google, alias: models/gemini-2.5-flash, channel: google-api}
662
+ - provider: google
663
+ alias: google/gemini-2.5-flash
664
+ channel: vercel-ai-gateway
665
+ rules: {input_includes_cache_read: true}
652
666
  prices:
653
667
  - channel: google-api
654
668
  region: global
@@ -659,6 +673,14 @@ models:
659
673
  batch_input_per_mtok: 0.15
660
674
  batch_output_per_mtok: 1.25
661
675
  source_url: https://ai.google.dev/gemini-api/docs/pricing
676
+ # Gateway cache reads are cheaper than Google direct ($0.03 vs $0.075/Mtok).
677
+ - channel: vercel-ai-gateway
678
+ region: global
679
+ effective_from: "2025-06-17"
680
+ input_per_mtok: 0.30
681
+ output_per_mtok: 2.50
682
+ cache_read_per_mtok: 0.03
683
+ source_url: https://vercel.com/ai-gateway/models/gemini-2.5-flash/providers
662
684
 
663
685
  - canonical_id: google/gemini-2.5-flash-lite
664
686
  publisher: google
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metergraph-core
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: Reusable MeterGraph catalog and deterministic billing engine
5
5
  License-Expression: Apache-2.0
6
6
  Requires-Python: >=3.10