yymaxapi 1.0.51 → 1.0.52
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/bin/yymaxapi.js +3 -9
- package/package.json +1 -1
package/bin/yymaxapi.js
CHANGED
|
@@ -1182,17 +1182,11 @@ function coerceModelsRecord(value) {
|
|
|
1182
1182
|
return record;
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
|
-
const
|
|
1186
|
-
'models', 'agents', 'auth', 'gateway', 'tools',
|
|
1187
|
-
'channels', 'mcpServers', 'globalShortcut', 'customModes',
|
|
1188
|
-
'permissions', 'proxy', 'env', 'hooks', 'storage',
|
|
1189
|
-
]);
|
|
1185
|
+
const OPENCLAW_INVALID_ROOT_KEYS = ['model'];
|
|
1190
1186
|
|
|
1191
1187
|
function sanitizeRootKeys(config) {
|
|
1192
|
-
for (const key of
|
|
1193
|
-
if (
|
|
1194
|
-
delete config[key];
|
|
1195
|
-
}
|
|
1188
|
+
for (const key of OPENCLAW_INVALID_ROOT_KEYS) {
|
|
1189
|
+
if (key in config) delete config[key];
|
|
1196
1190
|
}
|
|
1197
1191
|
}
|
|
1198
1192
|
|