fix: add pricing bootstrap opt-out and sdk compat exports

This commit is contained in:
Peter Steinberger
2026-04-28 08:35:01 +01:00
parent f5a7632ffc
commit 1dd011984a
22 changed files with 195 additions and 4 deletions

View File

@@ -120,6 +120,13 @@ These are **USD per 1M tokens** for `input`, `output`, `cacheRead`, and
`cacheWrite`. If pricing is missing, OpenClaw shows tokens only. OAuth tokens
never show dollar cost.
Gateway startup also performs an optional background pricing bootstrap for
configured model refs that do not already have local pricing. That bootstrap
fetches remote OpenRouter and LiteLLM pricing catalogs. Set
`models.pricing.enabled: false` to skip those startup catalog fetches on offline
or restricted networks; explicit `models.providers.*.models[].cost` entries
continue to drive local cost estimates.
## Cache TTL and pruning impact
Provider prompt caching only applies within the cache TTL window. OpenClaw can