15 lines
305 B
Python
15 lines
305 B
Python
import json
|
|
|
|
from loop_claude.claude_code.formats import models_in
|
|
|
|
|
|
def offered_models(folder):
|
|
files = []
|
|
for path in folder.glob("*.json"):
|
|
try:
|
|
with open(path, encoding="utf-8") as handle:
|
|
files.append(json.load(handle))
|
|
except (OSError, ValueError):
|
|
continue
|
|
return models_in(files)
|