Skip to content

Commit dcdc3df

Browse files
author
fengchenchen
committed
fix(cli): keep the dynamically_loaded_tools capability in the pruned catalog
The built-in catalog pruner kept only a fixed field whitelist, so both the canonical dynamically_loaded_tools key and the deprecated select_tools spelling were stripped from the bundled models.dev snapshot — catalog-imported aliases would silently lose the capability even when the upstream catalog declares it. Add both spellings to the keep list (kosong's catalogModelToCapability reads both).
1 parent 9260081 commit dcdc3df

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/kimi-code/scripts/update-catalog.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ const KEEP_MODEL = new Set([
2424
"reasoning",
2525
"interleaved",
2626
"modalities",
27+
// Message-level tool declarations capability (canonical + deprecated
28+
// spelling) — kosong's catalogModelToCapability reads both; stripping them
29+
// here would silently disable tool-select for catalog-imported aliases.
30+
"dynamically_loaded_tools",
31+
"select_tools",
2732
]);
2833

2934
function resolveOutputFile(args) {

0 commit comments

Comments
 (0)