Name formats.models_in by what it returns, and read the catalog in one function

This commit is contained in:
2026-09-29 11:50:16 +02:00
parent 29495b1e7d
commit c2be13efd5
2 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ def mark_trusted(config, roots):
# <model catalog>/*.json: {"fetchedAt": 1790618085238, "catalog": {"config": {"models": [{"id": "claude-opus-5-5", "name": "Opus 5.5", ...}]}}}
def catalog(files):
def models_in(files):
"""The (id, name) of each model in the newest of the parsed catalog files."""
newest = {}
for data in files: