You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 84da6de
Browse filesBrowse the repository at this point in the historyBrowse files
fix(models): refresh native pricing without pinning defaults (#133695)
* fix(models): refresh native pricing without pinning defaults
Use complete native OpenCode and Venice pricing schedules while preserving
authored zero, partial, flat and tiered costs across preparation and lookup.
Avoid generated price pins during fresh merge-mode Venice onboarding.
Follow-up to #133349 (cached long-context accounting) and #129694
(Venice runtime pricing); related to #113549 (broader OpenCode catalog drift).
* fix(pricing): preserve native schedules through resolution
Merge prepared costs beneath authored display prices, retain validated native
free schedules under exact owner policy, and compile OpenRouter overrides
with strict thresholds and source-order inheritance for each price key.
Preserve zero, partial, flat and tiered user pricing without new settings
or storage. Follow-up repairs for #133695.
Copy file name to clipboardExpand all lines: docs/plugins/manifest.md
+38-6Lines changed: 38 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,7 @@ See [Plugins](/tools/plugin) for the full plugin system guide, and [Capability m
150
150
|`providerCatalogEntry`| No |`string`| Lightweight provider-catalog module path, relative to the plugin root, for manifest-scoped provider catalog metadata that can be loaded without activating the full plugin runtime. |
151
151
|`modelSupport`| No |`object`| Manifest-owned shorthand model-family metadata used to auto-load the plugin before runtime. |
152
152
|`modelCatalog`| No |`object`| Declarative model catalog metadata for providers owned by this plugin. This is the control-plane contract for future read-only listing, onboarding, model pickers, aliases, and suppression without loading plugin runtime. |
153
-
|`modelPricing`| No |`object`| Provider-owned hosted-pricing publication policy. Use it to opt local/self-hosted providers out of published pricing or map provider refs to OpenRouter/LiteLLM catalog ids without hardcoding provider ids in core.|
153
+
|`modelPricing`| No |`object`| Provider-owned hosted-pricing publication policy. Use it to opt local/self-hosted providers out of published pricing or map provider refs to supported public pricing catalogs without hardcoding provider ids in core. |
154
154
|`modelIdNormalization`| No |`object`| Provider-owned model-id alias/prefix cleanup that must run before provider runtime loads. |
155
155
|`providerEndpoints`| No |`object[]`| Manifest-owned endpoint host/baseUrl metadata for provider routes that core must classify before provider runtime loads. |
156
156
|`providerRequest`| No |`object`| Cheap provider-family and request-compatibility metadata used by generic request policy before provider runtime loads. |
@@ -1295,11 +1295,13 @@ Use `modelPricing` when the hosted catalog publisher needs provider-specific pri
|`external`|`boolean`| Set `false` for local/self-hosted providers that should never use published external pricing. |
1301
+
|`openCode`|`false \| object`| Explicit mapping to the public `models.opencode.ai/api.json` catalog. Never enabled implicitly. |
1302
+
|`openRouter`|`false \| object`| OpenRouter publication-key mapping. `false` disables OpenRouter matching for this provider. |
1303
+
|`liteLLM`|`false \| object`| LiteLLM publication-key mapping. `false` disables LiteLLM matching for this provider. |
1304
+
|`venice`|`false \| object`| Explicit mapping to the public Venice `/api/v1/models` catalog. Never enabled implicitly. |
1303
1305
1304
1306
Source fields:
1305
1307
@@ -1309,6 +1311,36 @@ Source fields:
1309
1311
|`passthroughProviderModel`|`boolean`| Treat slash-containing model ids as nested provider/model refs, useful for proxy providers such as OpenRouter. |
1310
1312
|`modelIdTransforms`|`"version-dots"[]`| Extra external catalog model-id variants. `version-dots` tries dotted version ids like `claude-opus-4.6`. |
1311
1313
1314
+
A declared provider policy enables only its declared source mappings. Without a
1315
+
policy, publication tries OpenRouter, then LiteLLM. Each selected price is a
1316
+
complete schedule: base rates and context tiers are never combined across sources.
1317
+
OpenRouter's native prompt-length overrides are supported; time-based overrides
The publisher fetches the fixed OpenCode or Venice public endpoint without
1335
+
credentials only when its source is declared, and publishes native prices only
1336
+
in explicitly mapped owner namespaces. Venice's lightweight public
1337
+
`pricing-api.ts` keeps its payload parsing in the plugin and shares the complete
1338
+
schedule parser with runtime discovery. Fetch failure, malformed response
1339
+
bodies, or missing or invalid pricing for a paid bundled model stops
1340
+
publication, leaving the previous hosted catalog intact rather than publishing
1341
+
stale seed rates with a new timestamp. This authoring metadata does not add an
1342
+
operator setting or change the Gateway's existing refresh and restart lifecycle.
1343
+
1312
1344
### OpenClaw Provider Index
1313
1345
1314
1346
The OpenClaw Provider Index is OpenClaw-owned preview metadata for providers whose plugins may not be installed yet. It is not part of a plugin manifest. Plugin manifests remain the installed-plugin authority. The Provider Index is the internal fallback contract that future installable-provider and pre-install model picker surfaces will consume when a provider plugin is not installed.
0 commit comments