17 lines
324 B
Python
17 lines
324 B
Python
import json
|
|
|
|
from loop_claude.claude_code.formats import catalog
|
|
|
|
|
|
def offered_models(folder):
|
|
return catalog(read_catalog(folder))
|
|
|
|
|
|
def read_catalog(folder):
|
|
for path in folder.glob("*.json"):
|
|
try:
|
|
with open(path, encoding="utf-8") as handle:
|
|
yield json.load(handle)
|
|
except (OSError, ValueError):
|
|
continue
|