llmage/wwwroot/model_plaza.ui
yumoqing c058a2c8ba refactor(model_plaza): rewrite with DimensionFilter widget, add category/provider DSPY endpoints
- 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
2026-07-30 16:13:40 +08:00

24 lines
825 B
XML

{
"widgettype": "VBox",
"options": {"css": "plaza-container", "width": "100%", "height": "100%", "gap": "8px"},
"subwidgets": [
{
"widgettype": "Title2",
"options": {"otext": "模型广场", "i18n": true, "halign": "left"}
},
{
"widgettype": "DimensionFilter",
"id": "plaza_dim_filter",
"options": {
"h_data_url": "{{entire_url('api/plaza_categories.dspy')}}",
"v_measure_url": "{{entire_url('api/plaza_providers.dspy')}}",
"show_data_url": "{{entire_url('plaza_model_cards.ui')}}",
"search_placeholder": "搜索模型名称或描述...",
"css": "filler",
"width": "100%",
"flex": "1"
}
}
]
}