metergraph-core 0.7.6__tar.gz → 0.8.0__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 (24) hide show
  1. {metergraph_core-0.7.6/src/metergraph_core.egg-info → metergraph_core-0.8.0}/PKG-INFO +1 -1
  2. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/pyproject.toml +1 -1
  3. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/data/models.yaml +46 -1
  4. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/models.py +10 -1
  5. {metergraph_core-0.7.6 → metergraph_core-0.8.0/src/metergraph_core.egg-info}/PKG-INFO +1 -1
  6. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/MANIFEST.in +0 -0
  7. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/README.md +0 -0
  8. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/setup.cfg +0 -0
  9. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/__init__.py +0 -0
  10. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/billing.py +0 -0
  11. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/catalog.py +0 -0
  12. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/catalog_delta.py +0 -0
  13. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/data/prices.yaml +0 -0
  14. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/data/sources.yaml +0 -0
  15. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/extractors.py +0 -0
  16. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/loader.py +0 -0
  17. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/refresh.py +0 -0
  18. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/responses.py +0 -0
  19. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/retrieval.py +0 -0
  20. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core/sources.py +0 -0
  21. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core.egg-info/SOURCES.txt +0 -0
  22. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core.egg-info/dependency_links.txt +0 -0
  23. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/src/metergraph_core.egg-info/requires.txt +0 -0
  24. {metergraph_core-0.7.6 → metergraph_core-0.8.0}/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.7.6
3
+ Version: 0.8.0
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.7.6"
3
+ version = "0.8.0"
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"
@@ -1,4 +1,4 @@
1
- version: '2026-10-19'
1
+ version: '2026-10-27'
2
2
  models:
3
3
  - canonical_id: openai/gpt-5.6-sol
4
4
  display_name: GPT-5.6 Sol
@@ -852,6 +852,42 @@ models:
852
852
  pricing_channel: vercel-ai-gateway
853
853
  execution_profiles:
854
854
  - default
855
+ - canonical_id: openai/gpt-6.1-terra
856
+ display_name: GPT-6.1 Terra
857
+ publisher: openai
858
+ routes:
859
+ - key: default:openai:gpt-6.1-terra
860
+ id: openai:gpt-6.1-terra
861
+ provider: openai
862
+ model_id: gpt-6.1-terra
863
+ pricing_channel: openai-api
864
+ execution_profiles:
865
+ - default
866
+ display_name: GPT-6.1 Terra
867
+ - canonical_id: moonshotai/kimi-k3.1-pro
868
+ display_name: Kimi K3.1 Pro
869
+ publisher: moonshotai
870
+ routes:
871
+ - key: default:moonshotai:kimi-k3.1-pro
872
+ id: moonshotai:kimi-k3.1-pro
873
+ provider: moonshotai
874
+ model_id: kimi-k3.1-pro
875
+ pricing_channel: moonshot-api
876
+ execution_profiles:
877
+ - default
878
+ display_name: Kimi K3.1 Pro (direct)
879
+ - canonical_id: moonshotai/kimi-k3.1-pro-highspeed
880
+ display_name: Kimi K3.1 Pro Highspeed
881
+ publisher: moonshotai
882
+ routes:
883
+ - key: default:moonshotai:kimi-k3.1-pro-highspeed
884
+ id: moonshotai:kimi-k3.1-pro-highspeed
885
+ provider: moonshotai
886
+ model_id: kimi-k3.1-pro-highspeed
887
+ pricing_channel: moonshot-api
888
+ execution_profiles:
889
+ - default
890
+ display_name: Kimi K3.1 Pro Highspeed (direct)
855
891
  execution_profiles:
856
892
  - id: default
857
893
  routes:
@@ -924,6 +960,9 @@ execution_profiles:
924
960
  - default:openai:gpt-6.1-sol
925
961
  - default:anthropic:claude-sonnet-5-5
926
962
  - default:anthropic:claude-haiku-5-5
963
+ - default:openai:gpt-6.1-terra
964
+ - default:moonshotai:kimi-k3.1-pro
965
+ - default:moonshotai:kimi-k3.1-pro-highspeed
927
966
  - id: bedrock
928
967
  routes:
929
968
  - bedrock:anthropic/claude-sonnet-5
@@ -1005,6 +1044,7 @@ offer_groups:
1005
1044
  - default:openai:gpt-5.4-mini
1006
1045
  - default:openai:gpt-5.4-nano
1007
1046
  - default:openai:gpt-6.1-sol
1047
+ - default:openai:gpt-6.1-terra
1008
1048
  - id: anthropic-direct
1009
1049
  credential: ANTHROPIC_API_KEY
1010
1050
  routes:
@@ -1014,6 +1054,11 @@ offer_groups:
1014
1054
  - default:anthropic:claude-haiku-4-5
1015
1055
  - default:anthropic:claude-sonnet-5-5
1016
1056
  - default:anthropic:claude-haiku-5-5
1057
+ - id: moonshot-direct
1058
+ credential: MOONSHOT_API_KEY
1059
+ routes:
1060
+ - default:moonshotai:kimi-k3.1-pro
1061
+ - default:moonshotai:kimi-k3.1-pro-highspeed
1017
1062
  - id: bedrock
1018
1063
  credential: null
1019
1064
  routes:
@@ -15,12 +15,18 @@ from .loader import LoadedCatalog
15
15
 
16
16
 
17
17
  EXECUTION_PROFILES = frozenset({"default", "bedrock"})
18
- ROUTE_PROVIDERS = frozenset({"anthropic", "bedrock", "fireworks", "openai", "vercel"})
18
+ # Route providers use the catalog's normalized provider names: Moonshot is
19
+ # "moonshotai", the name its catalog aliases carry ("moonshot" is only an
20
+ # input alias the catalog normalizes).
21
+ ROUTE_PROVIDERS = frozenset(
22
+ {"anthropic", "bedrock", "fireworks", "moonshotai", "openai", "vercel"}
23
+ )
19
24
  ROUTE_PROVIDER_CHANNELS = MappingProxyType(
20
25
  {
21
26
  "anthropic": "anthropic-api",
22
27
  "bedrock": "aws-bedrock",
23
28
  "fireworks": "fireworks-api",
29
+ "moonshotai": "moonshot-api",
24
30
  "openai": "openai-api",
25
31
  "vercel": "vercel-ai-gateway",
26
32
  }
@@ -31,6 +37,7 @@ OFFER_GROUP_PROFILES = MappingProxyType(
31
37
  "fireworks": "default",
32
38
  "openai-direct": "default",
33
39
  "anthropic-direct": "default",
40
+ "moonshot-direct": "default",
34
41
  "bedrock": "bedrock",
35
42
  }
36
43
  )
@@ -40,6 +47,7 @@ OFFER_GROUP_CREDENTIALS = MappingProxyType(
40
47
  "fireworks": "FIREWORKS_API_KEY",
41
48
  "openai-direct": "OPENAI_API_KEY",
42
49
  "anthropic-direct": "ANTHROPIC_API_KEY",
50
+ "moonshot-direct": "MOONSHOT_API_KEY",
43
51
  "bedrock": None,
44
52
  }
45
53
  )
@@ -49,6 +57,7 @@ OFFER_GROUP_PROVIDERS = MappingProxyType(
49
57
  "fireworks": "fireworks",
50
58
  "openai-direct": "openai",
51
59
  "anthropic-direct": "anthropic",
60
+ "moonshot-direct": "moonshotai",
52
61
  "bedrock": "bedrock",
53
62
  }
54
63
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metergraph-core
3
- Version: 0.7.6
3
+ Version: 0.8.0
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