llmage/json/llm.json

118 lines
2.6 KiB
JSON

{
"tblname": "llm",
"title":"大语言模型",
"params": {
"sortby":"model",
"logined_userorgid": "ownerid",
"data_url": "{{entire_url('../api/llm_list.dspy')}}",
"data_filter": {
"AND": [
{"field": "name", "op": "LIKE", "var": "name_input"},
{"field": "model", "op": "LIKE", "var": "model_input"},
{"field": "providerid", "op": "=", "var": "providerid_input"},
{"field": "upappid", "op": "=", "var": "upappid_input"},
{"field": "status", "op": "=", "var": "status_input"}
]
},
"filter_labels": {
"name_input": "名称",
"model_input": "识别名",
"providerid_input": "供应商",
"upappid_input": "上位系统",
"status_input": "上架状态"
},
"browserfields": {
"exclouded": ["id", "ownerid"]
},
"toolbar": {
"tools":[
{
"name":"test",
"label":"体验",
"selected_row":true
},
{
"name":"publish",
"label":"上架",
"selected_row":true
},
{
"name":"unpublish",
"label":"下架",
"selected_row":true
}
]
},
"binds":[
{
"wid":"self",
"event":"test",
"actiontype":"urlwidget",
"target":"PopupWindow",
"popup_options":{
"title":"model Test",
"cwidth":22,
"height":"75%"
},
"options":{
"url":"{{entire_url('./llm_dialog.ui')}}",
"params":{
"id":"${id}"
}
}
},
{
"wid":"self",
"event":"publish",
"actiontype":"urlwidget",
"target":"PopupWindow",
"popup_options":{
"title":"上架确认",
"cwidth":20,
"cheight":8
},
"options":{
"url":"{{entire_url('../api/llm_status_update.dspy')}}",
"params":{
"id":"${id}",
"status":"published"
}
}
},
{
"wid":"self",
"event":"unpublish",
"actiontype":"urlwidget",
"target":"PopupWindow",
"popup_options":{
"title":"下架确认",
"cwidth":20,
"cheight":8
},
"options":{
"url":"{{entire_url('../api/llm_status_update.dspy')}}",
"params":{
"id":"${id}",
"status":"unpublished"
}
}
}
],
"editexclouded": [
"id", "ownerid"
],
"editable": {
"new_data_url": "{{entire_url('../api/llm_create.dspy')}}",
"update_data_url": "{{entire_url('../api/llm_update.dspy')}}",
"delete_data_url": "{{entire_url('../api/llm_delete.dspy')}}"
},
"subtables":[
{
"field":"llmid",
"title":"能力映射",
"subtable":"llm_api_map"
}
]
}
}