bugfix
This commit is contained in:
parent
46ef2f9539
commit
b277484424
@ -14,7 +14,7 @@
|
|||||||
{
|
{
|
||||||
"widgettype":"urlwidget",
|
"widgettype":"urlwidget",
|
||||||
"options":{
|
"options":{
|
||||||
"url":"{{entire_url('./list_llms.ui')}}"
|
"url":"{{entire_url('/llmage/show_llms.ui')}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1,113 +0,0 @@
|
|||||||
{
|
|
||||||
"widgettype":"VBox",
|
|
||||||
"options":{
|
|
||||||
"width":"100%",
|
|
||||||
"height":"100%"
|
|
||||||
},
|
|
||||||
"subwidgets":[
|
|
||||||
{% for mt in get_llm_types() %}
|
|
||||||
{
|
|
||||||
"widgettype":"Title4",
|
|
||||||
"options":{
|
|
||||||
"cheight":2.5,
|
|
||||||
"text":"{{mt.name}}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"widgettype":"Cols",
|
|
||||||
"options":{
|
|
||||||
"data_url":"{{entire_url('get_llms_by_modeltype.dspy')}}",
|
|
||||||
"data_params":{
|
|
||||||
"mtid":"{{mt.id}}"
|
|
||||||
},
|
|
||||||
"mobile_cols":2,
|
|
||||||
"col_cwidth":16,
|
|
||||||
"col_cheight":12,
|
|
||||||
"record_view":{
|
|
||||||
"widgettype":"VBox",
|
|
||||||
"options":{
|
|
||||||
"css":"card"
|
|
||||||
},
|
|
||||||
"subwidgets":[
|
|
||||||
{
|
|
||||||
"widgettype":"Title4",
|
|
||||||
"options":{
|
|
||||||
"text":"${name}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"widgettype":"Filler",
|
|
||||||
"options":{
|
|
||||||
"css":"scroll"
|
|
||||||
},
|
|
||||||
"subwidgets":[
|
|
||||||
{
|
|
||||||
"widgettype":"VBox",
|
|
||||||
"options":{
|
|
||||||
"css":"subcard"
|
|
||||||
},
|
|
||||||
"subwidgets":[
|
|
||||||
{
|
|
||||||
"widgettype":"Text",
|
|
||||||
"options":{
|
|
||||||
"text":"模型描述:${description}",
|
|
||||||
"WRAP":true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"widgettype":"Text",
|
|
||||||
"options":{
|
|
||||||
"text":"启用日期:${enable_date}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"widgettype":"HBox",
|
|
||||||
"options":{
|
|
||||||
"cheight":2
|
|
||||||
},
|
|
||||||
"subwidgets":[
|
|
||||||
{
|
|
||||||
"widgettype":"IconBar",
|
|
||||||
"options":{
|
|
||||||
"tools":[
|
|
||||||
{
|
|
||||||
"icon":"{{entire_url('/bricks/imgs/play.svg')}}",
|
|
||||||
"name":"play",
|
|
||||||
"rate":1.5,
|
|
||||||
"label":"play",
|
|
||||||
"tip":"try it out"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"binds":[
|
|
||||||
{
|
|
||||||
"wid":"self",
|
|
||||||
"event":"play",
|
|
||||||
"actiontype":"urlwidget",
|
|
||||||
"target":"root",
|
|
||||||
"options":{
|
|
||||||
"url":"{{entire_url('/basellm/dialog/llm_dialog.dspy')}}",
|
|
||||||
"params":{
|
|
||||||
"modelinstanceid":"${id}",
|
|
||||||
"modeltypeid":"${modeltypeid}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{% endfor %}
|
|
||||||
{
|
|
||||||
"widgettype":"Splitter"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user