- Create plaza_categories.dspy: returns {rows: [{id, name}]} from get_llmcatelogs()
- Create plaza_providers.dspy: returns {rows: [{id, name}]} from get_llmproviders()
- Rewrite model_plaza.ui: replaced old button/grid layout with DimensionFilter widget
- Update plaza_model_cards.ui: accept both new (h_id/v_id/keyword) and old (catelogid/providerid/search) param names
- Update sage/load_path.py: register new DSPY endpoints
9 lines
223 B
Python
9 lines
223 B
Python
#!/usr/bin/env python3
|
|
|
|
import json
|
|
from llmage.utils import get_llmcatelogs
|
|
|
|
data = await get_llmcatelogs()
|
|
rows = [{'id': r.id, 'name': r.name} for r in (data or [])]
|
|
return json.dumps({'rows': rows}, ensure_ascii=False)
|