mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:30:44 +00:00
fix: add pricing bootstrap opt-out and sdk compat exports
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user