- 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
236 B
Python
9 lines
236 B
Python
#!/usr/bin/env python3
|
|
|
|
import json
|
|
from llmage.utils import get_llmproviders
|
|
|
|
data = await get_llmproviders()
|
|
rows = [{'id': p.providerid, 'name': p.orgname} for p in (data or [])]
|
|
return json.dumps({'rows': rows}, ensure_ascii=False)
|