metergraph-core 0.8.7__tar.gz → 0.8.8__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.
Files changed (25) hide show
  1. {metergraph_core-0.8.7/src/metergraph_core.egg-info → metergraph_core-0.8.8}/PKG-INFO +1 -1
  2. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/pyproject.toml +1 -1
  3. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/catalog.py +3 -0
  4. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/data/prices.yaml +27 -1
  5. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/data/sources.yaml +10 -0
  6. {metergraph_core-0.8.7 → metergraph_core-0.8.8/src/metergraph_core.egg-info}/PKG-INFO +1 -1
  7. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/MANIFEST.in +0 -0
  8. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/README.md +0 -0
  9. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/setup.cfg +0 -0
  10. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/__init__.py +0 -0
  11. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/billing.py +0 -0
  12. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/calls.py +0 -0
  13. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/catalog_delta.py +0 -0
  14. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/data/models.yaml +0 -0
  15. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/extractors.py +0 -0
  16. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/loader.py +0 -0
  17. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/models.py +0 -0
  18. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/refresh.py +0 -0
  19. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/responses.py +0 -0
  20. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/retrieval.py +0 -0
  21. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core/sources.py +0 -0
  22. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core.egg-info/SOURCES.txt +0 -0
  23. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core.egg-info/dependency_links.txt +0 -0
  24. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core.egg-info/requires.txt +0 -0
  25. {metergraph_core-0.8.7 → metergraph_core-0.8.8}/src/metergraph_core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metergraph-core
3
- Version: 0.8.7
3
+ Version: 0.8.8
4
4
  Summary: Open, effective-dated LLM pricing catalog and deterministic cost calculator for popular models across major providers and gateways, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, OpenRouter, Vercel AI Gateway, and more.
5
5
  Author: Metergraph
6
6
  License-Expression: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "metergraph-core"
3
- version = "0.8.7"
3
+ version = "0.8.8"
4
4
  description = "Open, effective-dated LLM pricing catalog and deterministic cost calculator for popular models across major providers and gateways, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, OpenRouter, Vercel AI Gateway, and more."
5
5
  readme = "README.md"
6
6
  license = "Apache-2.0"
@@ -32,6 +32,9 @@ _DIRECT_CHANNEL_BY_PROVIDER = {
32
32
  "google": "google-api",
33
33
  "vercel": "vercel-ai-gateway",
34
34
  "openrouter": "openrouter-api",
35
+ # Captured Tencent API traffic is assumed to use TokenHub; review this
36
+ # mapping before adding TokenHub rates for Tencent's own models.
37
+ "tencent": "tencent-tokenhub-api",
35
38
  "vertex-ai": "google-vertex-ai",
36
39
  "fireworks": "fireworks-api",
37
40
  "bedrock": "aws-bedrock",
@@ -6,7 +6,7 @@
6
6
  #
7
7
  # Community updates welcome: add an alias or price entry with its provider
8
8
  # source_url and open a PR. CI validates structure and date overlaps.
9
- version: "2026-11-02.1"
9
+ version: "2026-11-02.2"
10
10
  currency: USD
11
11
  pricing_verified_at: "2026-11-02"
12
12
  models:
@@ -3843,6 +3843,32 @@ models:
3843
3843
  rules:
3844
3844
  varies_by_provider: true
3845
3845
  source_url: https://openrouter.ai/api/v1/models
3846
+ - canonical_id: moonshotai/kimi-k2.8-preview
3847
+ publisher: moonshotai
3848
+ aliases:
3849
+ # This subscription ID follows Kimi Code's backing model; end the alias
3850
+ # when Kimi switches it to another model.
3851
+ - provider: moonshotai
3852
+ alias: kimi-for-coding
3853
+ channel: kimi-code-subscription
3854
+ effective_from: "2026-09-11"
3855
+ source_url: https://www.kimi.com/code/docs/en/kimi-code/whats-new.html
3856
+ - provider: tencent
3857
+ alias: kimi-k2.8-preview
3858
+ channel: tencent-tokenhub-api
3859
+ effective_from: "2026-11-02"
3860
+ source_url: https://intl.cloud.tencent.com/document/product/1300/80635
3861
+ prices:
3862
+ # First verified TokenHub rate, not its launch date. Add a separate
3863
+ # earlier row if historical rates are later verified.
3864
+ - channel: tencent-tokenhub-api
3865
+ region: global
3866
+ effective_from: "2026-11-02"
3867
+ input_per_mtok: 1.00
3868
+ output_per_mtok: 4.00
3869
+ cache_read_per_mtok: 0.25
3870
+ rules: {input_includes_cache_read: true}
3871
+ source_url: https://intl.cloud.tencent.com/document/product/1300/78937
3846
3872
  - canonical_id: moonshotai/kimi-k3-fast
3847
3873
  publisher: moonshotai
3848
3874
  aliases:
@@ -162,6 +162,16 @@ sources:
162
162
  fingerprint: null
163
163
  low_risk: {eligible: false, dimensions: []}
164
164
 
165
+ - id: tencent-tokenhub-kimi-k28-pricing
166
+ provider: tencent
167
+ channel: tencent-tokenhub-api
168
+ catalog_channel: true
169
+ url: https://intl.cloud.tencent.com/document/product/1300/78937
170
+ parser: html-tables
171
+ dimensions: [input_per_mtok, output_per_mtok, cache_read_per_mtok]
172
+ fingerprint: null
173
+ low_risk: {eligible: false, dimensions: []}
174
+
165
175
  # Gemini and partner models on Vertex AI. Prices vary by model, context
166
176
  # length, tier and processing mode; reviewed discovery only. The URL is the
167
177
  # current destination of Google's Vertex AI generative pricing page
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metergraph-core
3
- Version: 0.8.7
3
+ Version: 0.8.8
4
4
  Summary: Open, effective-dated LLM pricing catalog and deterministic cost calculator for popular models across major providers and gateways, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, OpenRouter, Vercel AI Gateway, and more.
5
5
  Author: Metergraph
6
6
  License-Expression: Apache-2.0