@blockrun/clawrouter 0.5.4 → 0.5.5

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.
package/dist/index.js CHANGED
@@ -3262,6 +3262,11 @@ function injectModelsConfig(logger) {
3262
3262
  config.models.providers.blockrun.apiKey = "x402-proxy-handles-auth";
3263
3263
  needsWrite = true;
3264
3264
  }
3265
+ const currentModels = config.models.providers.blockrun.models;
3266
+ if (!currentModels || currentModels.length !== OPENCLAW_MODELS.length) {
3267
+ config.models.providers.blockrun.models = OPENCLAW_MODELS;
3268
+ needsWrite = true;
3269
+ }
3265
3270
  }
3266
3271
  if (!config.agents) config.agents = {};
3267
3272
  if (!config.agents.defaults) config.agents.defaults = {};