@blockrun/clawrouter 0.5.6 → 0.5.7
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 +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3277,10 +3277,11 @@ function injectModelsConfig(logger) {
|
|
|
3277
3277
|
}
|
|
3278
3278
|
if (config.agents.defaults.models && typeof config.agents.defaults.models === "object") {
|
|
3279
3279
|
const allowlist = config.agents.defaults.models;
|
|
3280
|
-
const
|
|
3281
|
-
|
|
3282
|
-
if (!allowlist[
|
|
3283
|
-
|
|
3280
|
+
for (const model of OPENCLAW_MODELS) {
|
|
3281
|
+
const fullId = `blockrun/${model.id}`;
|
|
3282
|
+
if (!allowlist[fullId]) {
|
|
3283
|
+
const alias = model.id.includes("/") ? model.id.split("/").pop() : model.id;
|
|
3284
|
+
allowlist[fullId] = { alias };
|
|
3284
3285
|
needsWrite = true;
|
|
3285
3286
|
}
|
|
3286
3287
|
}
|