@agentproto/model-catalog 0.12.0 → 0.12.1

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 (2) hide show
  1. package/README.md +7 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -33,6 +33,13 @@ const p = LLM_PRICING_CATALOG["claude-opus-4-8"]
33
33
  // → { inputPer1M, outputPer1M, provider, … }
34
34
  ```
35
35
 
36
+ Rows may carry prompt-length `tiers` (`[{ aboveInputTokens, inputPer1M,
37
+ outputPer1M, cacheReadMultiplier?, cacheWriteMultiplier? }]`) for models that
38
+ bill a higher rate once the prompt passes a threshold. `selectPricingTier(pricing,
39
+ promptTokens)` flattens a row to the rates for a given prompt length, and the
40
+ cost calculators bill the whole request at the tier its prompt falls in
41
+ (cache-read and cache-write input count toward that length).
42
+
36
43
  ## License
37
44
 
38
45
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentproto/model-catalog",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Unified, dependency-light model catalog: LLM, image, video, audio entries + cost dispatcher + picker. Zod-only; the OSS core that @agstudio/model-catalog layers billing/access/BYOK on top of.",
5
5
  "keywords": [
6
6
  "agentproto",