mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:00:42 +00:00
fix(gateway): defer pricing refresh until ready
This commit is contained in:
@@ -74,10 +74,10 @@ The `models` root also owns global model-catalog behavior.
|
||||
|
||||
- `models.mode`: provider catalog behavior (`merge` or `replace`).
|
||||
- `models.providers`: custom provider map keyed by provider id.
|
||||
- `models.pricing.enabled`: controls the background pricing bootstrap. When
|
||||
`false`, Gateway startup skips OpenRouter and LiteLLM pricing-catalog fetches;
|
||||
configured `models.providers.*.models[].cost` values still work for local cost
|
||||
estimates.
|
||||
- `models.pricing.enabled`: controls the background pricing bootstrap that
|
||||
starts after sidecars and channels reach the Gateway ready path. When `false`,
|
||||
the Gateway skips OpenRouter and LiteLLM pricing-catalog fetches; configured
|
||||
`models.providers.*.models[].cost` values still work for local cost estimates.
|
||||
|
||||
## MCP
|
||||
|
||||
|
||||
@@ -120,12 +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.
|
||||
After sidecars and channels reach the Gateway ready path, OpenClaw starts 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 catalog
|
||||
fetches on offline or restricted networks; explicit
|
||||
`models.providers.*.models[].cost` entries continue to drive local cost
|
||||
estimates.
|
||||
|
||||
## Cache TTL and pruning impact
|
||||
|
||||
|
||||
Reference in New Issue
Block a user