metergraph-core 0.9.2__tar.gz → 0.9.4__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.
- {metergraph_core-0.9.2/src/metergraph_core.egg-info → metergraph_core-0.9.4}/PKG-INFO +13 -8
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/README.md +12 -7
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/pyproject.toml +1 -1
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/catalog.py +1 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/data/models.yaml +22 -1
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/data/prices.yaml +76 -2
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/loader.py +43 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/models.py +5 -1
- {metergraph_core-0.9.2 → metergraph_core-0.9.4/src/metergraph_core.egg-info}/PKG-INFO +13 -8
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/MANIFEST.in +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/setup.cfg +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/__init__.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/billing.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/calls.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/catalog_delta.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/catalogs.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/data/sources.yaml +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/extractors.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/families.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/providers/__init__.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/providers/anthropic.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/providers/google.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/refresh.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/reliability.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/responses.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/retrieval.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core/sources.py +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core.egg-info/SOURCES.txt +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core.egg-info/dependency_links.txt +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core.egg-info/requires.txt +0 -0
- {metergraph_core-0.9.2 → metergraph_core-0.9.4}/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.9.
|
|
3
|
+
Version: 0.9.4
|
|
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
|
|
@@ -61,13 +61,18 @@ The result identifies the applied model and price. Check `status` before using
|
|
|
61
61
|
its cost as a complete total: missing usage or unsupported rates can make a
|
|
62
62
|
result `partial` or `unpriced`.
|
|
63
63
|
|
|
64
|
-
Azure Foundry pricing requires
|
|
65
|
-
and Azure resource region.
|
|
66
|
-
|
|
67
|
-
`
|
|
68
|
-
|
|
69
|
-
deployment
|
|
70
|
-
the
|
|
64
|
+
Azure Foundry pricing requires a caller-declared deployment mapping with its
|
|
65
|
+
underlying model version, SKU, and Azure resource region. Pass those facts to
|
|
66
|
+
`price_foundry_deployment()` as
|
|
67
|
+
`identity={"deployment": "my-deployment", "model": "gpt-6-luna",
|
|
68
|
+
"version": "2026-09-22", "sku": "GlobalStandard", "region": "eastus"}`,
|
|
69
|
+
with `requested_deployment="my-deployment"` from the request and token usage.
|
|
70
|
+
The method checks the declared SKU and requires the requested deployment to
|
|
71
|
+
match the mapping before applying the verified catalog rate. It does not
|
|
72
|
+
independently verify the deployment configuration with Azure. A generic
|
|
73
|
+
`provider="azure"` call stays unpriced because its deployment type is unknown.
|
|
74
|
+
Batch and cache-write usage remain partial where the catalog lacks a matching
|
|
75
|
+
rate.
|
|
71
76
|
|
|
72
77
|
Served OpenAI `priority`/`fast` and Vertex `priority` calls use model-specific
|
|
73
78
|
catalog rates where verified. Priority coverage starts on November 22, 2026.
|
|
@@ -31,13 +31,18 @@ The result identifies the applied model and price. Check `status` before using
|
|
|
31
31
|
its cost as a complete total: missing usage or unsupported rates can make a
|
|
32
32
|
result `partial` or `unpriced`.
|
|
33
33
|
|
|
34
|
-
Azure Foundry pricing requires
|
|
35
|
-
and Azure resource region.
|
|
36
|
-
|
|
37
|
-
`
|
|
38
|
-
|
|
39
|
-
deployment
|
|
40
|
-
the
|
|
34
|
+
Azure Foundry pricing requires a caller-declared deployment mapping with its
|
|
35
|
+
underlying model version, SKU, and Azure resource region. Pass those facts to
|
|
36
|
+
`price_foundry_deployment()` as
|
|
37
|
+
`identity={"deployment": "my-deployment", "model": "gpt-6-luna",
|
|
38
|
+
"version": "2026-09-22", "sku": "GlobalStandard", "region": "eastus"}`,
|
|
39
|
+
with `requested_deployment="my-deployment"` from the request and token usage.
|
|
40
|
+
The method checks the declared SKU and requires the requested deployment to
|
|
41
|
+
match the mapping before applying the verified catalog rate. It does not
|
|
42
|
+
independently verify the deployment configuration with Azure. A generic
|
|
43
|
+
`provider="azure"` call stays unpriced because its deployment type is unknown.
|
|
44
|
+
Batch and cache-write usage remain partial where the catalog lacks a matching
|
|
45
|
+
rate.
|
|
41
46
|
|
|
42
47
|
Served OpenAI `priority`/`fast` and Vertex `priority` calls use model-specific
|
|
43
48
|
catalog rates where verified. Priority coverage starts on November 22, 2026.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "metergraph-core"
|
|
3
|
-
version = "0.9.
|
|
3
|
+
version = "0.9.4"
|
|
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"
|
|
@@ -36,6 +36,7 @@ _DIRECT_CHANNEL_BY_PROVIDER = {
|
|
|
36
36
|
"openai": "openai-api",
|
|
37
37
|
# Generic Azure traffic has no channel: its deployment SKU must be known.
|
|
38
38
|
"azure-foundry-global-standard": "azure-foundry-global-standard",
|
|
39
|
+
"azure_foundry": "azure-foundry-global-standard",
|
|
39
40
|
"google": "google-api",
|
|
40
41
|
"vercel": "vercel-ai-gateway",
|
|
41
42
|
"openrouter": "openrouter-api",
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
version: '2026-11-
|
|
1
|
+
version: '2026-11-26'
|
|
2
2
|
# Training use of customer inputs and outputs under each serving provider's
|
|
3
3
|
# default terms. A pair left out resolves to unknown. A gateway or cloud host
|
|
4
4
|
# follows its own terms, never the model publisher's. No policy verifies an
|
|
5
5
|
# account's configuration, opt-ins or separate agreements.
|
|
6
6
|
provider_defaults:
|
|
7
|
+
azure_foundry:
|
|
8
|
+
azure-foundry-global-standard:
|
|
9
|
+
training_policy:
|
|
10
|
+
training_on_customer_data: prohibited
|
|
11
|
+
source: https://learn.microsoft.com/en-us/azure/foundry/responsible-ai/openai/data-privacy
|
|
7
12
|
anthropic:
|
|
8
13
|
anthropic-api:
|
|
9
14
|
training_policy:
|
|
@@ -50,6 +55,17 @@ provider_defaults:
|
|
|
50
55
|
training_on_customer_data: unknown
|
|
51
56
|
source: https://vercel.com/docs/ai-gateway/security-and-compliance/disallow-prompt-training
|
|
52
57
|
models:
|
|
58
|
+
- canonical_id: microsoft/mai-thinking-1
|
|
59
|
+
display_name: MAI-Thinking-1
|
|
60
|
+
publisher: microsoft
|
|
61
|
+
routes:
|
|
62
|
+
- key: default:azure_foundry:MAI-Thinking-1
|
|
63
|
+
id: azure_foundry:MAI-Thinking-1
|
|
64
|
+
provider: azure_foundry
|
|
65
|
+
model_id: MAI-Thinking-1
|
|
66
|
+
pricing_channel: azure-foundry-global-standard
|
|
67
|
+
execution_profiles:
|
|
68
|
+
- default
|
|
53
69
|
- canonical_id: openai/gpt-5.6-sol
|
|
54
70
|
display_name: GPT-5.6 Sol
|
|
55
71
|
publisher: openai
|
|
@@ -1132,6 +1148,7 @@ models:
|
|
|
1132
1148
|
execution_profiles:
|
|
1133
1149
|
- id: default
|
|
1134
1150
|
routes:
|
|
1151
|
+
- default:azure_foundry:MAI-Thinking-1
|
|
1135
1152
|
- default:openai/gpt-5.6-sol
|
|
1136
1153
|
- default:openai/gpt-5.6-luna
|
|
1137
1154
|
- default:openai/gpt-6-luna
|
|
@@ -1233,6 +1250,10 @@ execution_profiles:
|
|
|
1233
1250
|
- bedrock:deepseek/deepseek-v3.2
|
|
1234
1251
|
- bedrock:deepseek/deepseek-v3.1
|
|
1235
1252
|
offer_groups:
|
|
1253
|
+
- id: azure-foundry-direct
|
|
1254
|
+
credential: AZURE_FOUNDRY_API_KEY
|
|
1255
|
+
routes:
|
|
1256
|
+
- default:azure_foundry:MAI-Thinking-1
|
|
1236
1257
|
- id: tinker-direct
|
|
1237
1258
|
credential: TINKER_API_KEY
|
|
1238
1259
|
routes:
|
|
@@ -6,10 +6,24 @@
|
|
|
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-
|
|
9
|
+
version: "2026-11-26.1"
|
|
10
10
|
currency: USD
|
|
11
|
-
pricing_verified_at: "2026-11-
|
|
11
|
+
pricing_verified_at: "2026-11-26"
|
|
12
12
|
models:
|
|
13
|
+
- canonical_id: microsoft/mai-thinking-1
|
|
14
|
+
publisher: microsoft
|
|
15
|
+
aliases:
|
|
16
|
+
- {provider: azure_foundry, alias: MAI-Thinking-1, channel: azure-foundry-global-standard}
|
|
17
|
+
prices:
|
|
18
|
+
- channel: azure-foundry-global-standard
|
|
19
|
+
region: global
|
|
20
|
+
effective_from: "2026-08-01"
|
|
21
|
+
input_per_mtok: 2.00
|
|
22
|
+
output_per_mtok: 8.00
|
|
23
|
+
cache_read_per_mtok: 0.20
|
|
24
|
+
rules: {input_includes_cache_read: true}
|
|
25
|
+
source_url: https://prices.azure.com/api/retail/prices
|
|
26
|
+
|
|
13
27
|
- canonical_id: openai/gpt-6-sol
|
|
14
28
|
publisher: openai
|
|
15
29
|
family: {id: openai/gpt-sol, display_name: GPT Sol}
|
|
@@ -749,6 +763,7 @@ models:
|
|
|
749
763
|
- channel: aws-bedrock
|
|
750
764
|
region: us-west-2
|
|
751
765
|
effective_from: "2026-08-17"
|
|
766
|
+
effective_to: "2026-11-20"
|
|
752
767
|
input_per_mtok: 5.50
|
|
753
768
|
output_per_mtok: 33.00
|
|
754
769
|
cache_read_per_mtok: 0.55
|
|
@@ -756,6 +771,17 @@ models:
|
|
|
756
771
|
rules:
|
|
757
772
|
long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
|
|
758
773
|
source_url: https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-56-sol.html
|
|
774
|
+
# First verified current rate, not the date AWS changed it.
|
|
775
|
+
- channel: aws-bedrock
|
|
776
|
+
region: us-west-2
|
|
777
|
+
effective_from: "2026-11-20"
|
|
778
|
+
input_per_mtok: 4.40
|
|
779
|
+
output_per_mtok: 22.00
|
|
780
|
+
cache_read_per_mtok: 0.44
|
|
781
|
+
cache_write_5m_per_mtok: 5.50
|
|
782
|
+
rules:
|
|
783
|
+
long_context: {threshold: 272000, input_multiplier: 2, output_multiplier: 1.5}
|
|
784
|
+
source_url: https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-openai-gpt-56-sol.html
|
|
759
785
|
- channel: openrouter-api
|
|
760
786
|
region: global
|
|
761
787
|
effective_from: "2026-10-29"
|
|
@@ -5229,7 +5255,18 @@ models:
|
|
|
5229
5255
|
rules:
|
|
5230
5256
|
input_includes_cache_read: true
|
|
5231
5257
|
input_includes_cache_write: true
|
|
5258
|
+
- {provider: zai, alias: glm-5.3, channel: zai-api}
|
|
5259
|
+
- {provider: unknown, alias: glm-5.3, channel: zai-api}
|
|
5260
|
+
- {provider: litellm, alias: glm-5.3, channel: zai-api}
|
|
5232
5261
|
prices:
|
|
5262
|
+
# First verified Z.ai rate, not its launch date.
|
|
5263
|
+
- channel: zai-api
|
|
5264
|
+
region: global
|
|
5265
|
+
effective_from: "2026-11-20"
|
|
5266
|
+
input_per_mtok: 1.4
|
|
5267
|
+
output_per_mtok: 4.4
|
|
5268
|
+
cache_read_per_mtok: 0.26
|
|
5269
|
+
source_url: https://docs.z.ai/guides/overview/pricing
|
|
5233
5270
|
- channel: vercel-ai-gateway
|
|
5234
5271
|
region: global
|
|
5235
5272
|
effective_from: "2026-08-14"
|
|
@@ -5299,7 +5336,18 @@ models:
|
|
|
5299
5336
|
rules:
|
|
5300
5337
|
input_includes_cache_read: true
|
|
5301
5338
|
input_includes_cache_write: true
|
|
5339
|
+
- {provider: zai, alias: glm-5.3-flash, channel: zai-api}
|
|
5340
|
+
- {provider: unknown, alias: glm-5.3-flash, channel: zai-api}
|
|
5341
|
+
- {provider: litellm, alias: glm-5.3-flash, channel: zai-api}
|
|
5302
5342
|
prices:
|
|
5343
|
+
# First verified Z.ai rate, not its launch date.
|
|
5344
|
+
- channel: zai-api
|
|
5345
|
+
region: global
|
|
5346
|
+
effective_from: "2026-11-20"
|
|
5347
|
+
input_per_mtok: 0.15
|
|
5348
|
+
output_per_mtok: 0.50
|
|
5349
|
+
cache_read_per_mtok: 0.03
|
|
5350
|
+
source_url: https://docs.z.ai/guides/overview/pricing
|
|
5303
5351
|
# Vercel lists this well under half the Fireworks rate. Recorded as listed;
|
|
5304
5352
|
# if it is promotional it will need an `effective_to` when it moves.
|
|
5305
5353
|
- channel: vercel-ai-gateway
|
|
@@ -10616,6 +10664,9 @@ models:
|
|
|
10616
10664
|
rules:
|
|
10617
10665
|
input_includes_cache_read: true
|
|
10618
10666
|
input_includes_cache_write: true
|
|
10667
|
+
- {provider: zai, alias: glm-5.3-flashx, channel: zai-api}
|
|
10668
|
+
- {provider: unknown, alias: glm-5.3-flashx, channel: zai-api}
|
|
10669
|
+
- {provider: litellm, alias: glm-5.3-flashx, channel: zai-api}
|
|
10619
10670
|
prices:
|
|
10620
10671
|
- channel: vercel-ai-gateway
|
|
10621
10672
|
region: global
|
|
@@ -10624,6 +10675,14 @@ models:
|
|
|
10624
10675
|
output_per_mtok: 1.25
|
|
10625
10676
|
cache_read_per_mtok: 0.075
|
|
10626
10677
|
source_url: https://ai-gateway.vercel.sh/v1/models
|
|
10678
|
+
# First verified Z.ai rate, not its launch date.
|
|
10679
|
+
- channel: zai-api
|
|
10680
|
+
region: global
|
|
10681
|
+
effective_from: "2026-11-20"
|
|
10682
|
+
input_per_mtok: 0.37
|
|
10683
|
+
output_per_mtok: 1.25
|
|
10684
|
+
cache_read_per_mtok: 0.075
|
|
10685
|
+
source_url: https://docs.z.ai/guides/overview/pricing
|
|
10627
10686
|
|
|
10628
10687
|
- channel: openrouter-api
|
|
10629
10688
|
region: global
|
|
@@ -10634,6 +10693,21 @@ models:
|
|
|
10634
10693
|
rules:
|
|
10635
10694
|
varies_by_provider: true
|
|
10636
10695
|
source_url: https://openrouter.ai/api/v1/models
|
|
10696
|
+
- canonical_id: zai/glm-5.3-flashx-legal
|
|
10697
|
+
publisher: zai
|
|
10698
|
+
aliases:
|
|
10699
|
+
- {provider: zai, alias: glm-5.3-flashx-legal, channel: zai-api}
|
|
10700
|
+
- {provider: unknown, alias: glm-5.3-flashx-legal, channel: zai-api}
|
|
10701
|
+
- {provider: litellm, alias: glm-5.3-flashx-legal, channel: zai-api}
|
|
10702
|
+
prices:
|
|
10703
|
+
# First verified Z.ai rate, not its launch date.
|
|
10704
|
+
- channel: zai-api
|
|
10705
|
+
region: global
|
|
10706
|
+
effective_from: "2026-11-20"
|
|
10707
|
+
input_per_mtok: 0.37
|
|
10708
|
+
output_per_mtok: 1.25
|
|
10709
|
+
cache_read_per_mtok: 0.075
|
|
10710
|
+
source_url: https://docs.z.ai/guides/overview/pricing
|
|
10637
10711
|
- canonical_id: zai/glm-5v-turbo
|
|
10638
10712
|
publisher: zai
|
|
10639
10713
|
aliases:
|
|
@@ -285,6 +285,49 @@ class LoadedCatalog:
|
|
|
285
285
|
)
|
|
286
286
|
return _cost_result(resolved, at=when, usage=usage, missing=missing)
|
|
287
287
|
|
|
288
|
+
def price_foundry_deployment(
|
|
289
|
+
self,
|
|
290
|
+
*,
|
|
291
|
+
identity: Mapping[str, Any] | None,
|
|
292
|
+
requested_deployment: Any,
|
|
293
|
+
at: Any,
|
|
294
|
+
usage: ModelUsage,
|
|
295
|
+
) -> CostResult:
|
|
296
|
+
"""Price a caller-declared Foundry mapping only for its requested deployment."""
|
|
297
|
+
when = _coerce_datetime(at)
|
|
298
|
+
|
|
299
|
+
def unpriced(reason: str) -> CostResult:
|
|
300
|
+
return CostResult(
|
|
301
|
+
None, None, None, "unpriced", (reason,), effective_at=when
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
if not isinstance(identity, Mapping):
|
|
305
|
+
return unpriced("foundry_deployment_unmapped")
|
|
306
|
+
if identity.get("sku") != "GlobalStandard":
|
|
307
|
+
return unpriced("foundry_sku_unsupported")
|
|
308
|
+
deployment = identity.get("deployment")
|
|
309
|
+
model = identity.get("model")
|
|
310
|
+
version = identity.get("version")
|
|
311
|
+
region = identity.get("region")
|
|
312
|
+
if (
|
|
313
|
+
not all(
|
|
314
|
+
isinstance(value, str) and value.strip()
|
|
315
|
+
for value in (deployment, model, version, region)
|
|
316
|
+
)
|
|
317
|
+
or not isinstance(requested_deployment, str)
|
|
318
|
+
or not requested_deployment.strip()
|
|
319
|
+
):
|
|
320
|
+
return unpriced("foundry_identity_incomplete")
|
|
321
|
+
if requested_deployment != deployment:
|
|
322
|
+
return unpriced("foundry_deployment_mismatch")
|
|
323
|
+
return self.calculate_cost(
|
|
324
|
+
model=f"{model.strip()}@{version.strip()}",
|
|
325
|
+
channel="azure-foundry-global-standard",
|
|
326
|
+
region=region.strip().lower(),
|
|
327
|
+
at=when,
|
|
328
|
+
usage=usage,
|
|
329
|
+
)
|
|
330
|
+
|
|
288
331
|
def price_retrieval(
|
|
289
332
|
self,
|
|
290
333
|
*,
|
|
@@ -21,11 +21,12 @@ EXECUTION_PROFILES = frozenset({"default", "bedrock"})
|
|
|
21
21
|
# "moonshotai", the name its catalog aliases carry ("moonshot" is only an
|
|
22
22
|
# input alias the catalog normalizes).
|
|
23
23
|
ROUTE_PROVIDERS = frozenset(
|
|
24
|
-
{"anthropic", "bedrock", "fireworks", "mistral", "moonshotai", "openai", "tinker", "vercel"}
|
|
24
|
+
{"anthropic", "azure_foundry", "bedrock", "fireworks", "mistral", "moonshotai", "openai", "tinker", "vercel"}
|
|
25
25
|
)
|
|
26
26
|
ROUTE_PROVIDER_CHANNELS = MappingProxyType(
|
|
27
27
|
{
|
|
28
28
|
"anthropic": "anthropic-api",
|
|
29
|
+
"azure_foundry": "azure-foundry-global-standard",
|
|
29
30
|
"bedrock": "aws-bedrock",
|
|
30
31
|
"fireworks": "fireworks-api",
|
|
31
32
|
"mistral": "mistral-api",
|
|
@@ -38,6 +39,7 @@ ROUTE_PROVIDER_CHANNELS = MappingProxyType(
|
|
|
38
39
|
OFFER_GROUP_PROFILES = MappingProxyType(
|
|
39
40
|
{
|
|
40
41
|
"gateway": "default",
|
|
42
|
+
"azure-foundry-direct": "default",
|
|
41
43
|
"fireworks": "default",
|
|
42
44
|
"openai-direct": "default",
|
|
43
45
|
"anthropic-direct": "default",
|
|
@@ -50,6 +52,7 @@ OFFER_GROUP_PROFILES = MappingProxyType(
|
|
|
50
52
|
OFFER_GROUP_CREDENTIALS = MappingProxyType(
|
|
51
53
|
{
|
|
52
54
|
"gateway": "AI_GATEWAY_API_KEY",
|
|
55
|
+
"azure-foundry-direct": "AZURE_FOUNDRY_API_KEY",
|
|
53
56
|
"fireworks": "FIREWORKS_API_KEY",
|
|
54
57
|
"openai-direct": "OPENAI_API_KEY",
|
|
55
58
|
"anthropic-direct": "ANTHROPIC_API_KEY",
|
|
@@ -62,6 +65,7 @@ OFFER_GROUP_CREDENTIALS = MappingProxyType(
|
|
|
62
65
|
OFFER_GROUP_PROVIDERS = MappingProxyType(
|
|
63
66
|
{
|
|
64
67
|
"gateway": "vercel",
|
|
68
|
+
"azure-foundry-direct": "azure_foundry",
|
|
65
69
|
"fireworks": "fireworks",
|
|
66
70
|
"openai-direct": "openai",
|
|
67
71
|
"anthropic-direct": "anthropic",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metergraph-core
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.4
|
|
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
|
|
@@ -61,13 +61,18 @@ The result identifies the applied model and price. Check `status` before using
|
|
|
61
61
|
its cost as a complete total: missing usage or unsupported rates can make a
|
|
62
62
|
result `partial` or `unpriced`.
|
|
63
63
|
|
|
64
|
-
Azure Foundry pricing requires
|
|
65
|
-
and Azure resource region.
|
|
66
|
-
|
|
67
|
-
`
|
|
68
|
-
|
|
69
|
-
deployment
|
|
70
|
-
the
|
|
64
|
+
Azure Foundry pricing requires a caller-declared deployment mapping with its
|
|
65
|
+
underlying model version, SKU, and Azure resource region. Pass those facts to
|
|
66
|
+
`price_foundry_deployment()` as
|
|
67
|
+
`identity={"deployment": "my-deployment", "model": "gpt-6-luna",
|
|
68
|
+
"version": "2026-09-22", "sku": "GlobalStandard", "region": "eastus"}`,
|
|
69
|
+
with `requested_deployment="my-deployment"` from the request and token usage.
|
|
70
|
+
The method checks the declared SKU and requires the requested deployment to
|
|
71
|
+
match the mapping before applying the verified catalog rate. It does not
|
|
72
|
+
independently verify the deployment configuration with Azure. A generic
|
|
73
|
+
`provider="azure"` call stays unpriced because its deployment type is unknown.
|
|
74
|
+
Batch and cache-write usage remain partial where the catalog lacks a matching
|
|
75
|
+
rate.
|
|
71
76
|
|
|
72
77
|
Served OpenAI `priority`/`fast` and Vertex `priority` calls use model-specific
|
|
73
78
|
catalog rates where verified. Priority coverage starts on November 22, 2026.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{metergraph_core-0.9.2 → metergraph_core-0.9.4}/src/metergraph_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|