diff --git a/wwwroot/public/llmsquare/index.ui b/wwwroot/public/llmsquare/index.ui index a79db29..b43f60f 100644 --- a/wwwroot/public/llmsquare/index.ui +++ b/wwwroot/public/llmsquare/index.ui @@ -14,7 +14,7 @@ { "widgettype":"urlwidget", "options":{ - "url":"{{entire_url('./list_llms.ui')}}" + "url":"{{entire_url('/llmage/show_llms.ui')}}" } } ] diff --git a/wwwroot/public/llmsquare/list_llms.ui b/wwwroot/public/llmsquare/list_llms.ui deleted file mode 100644 index 79feef2..0000000 --- a/wwwroot/public/llmsquare/list_llms.ui +++ /dev/null @@ -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" - } - ] -}