141 lines
3.5 KiB
JSON
141 lines
3.5 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"],
|
|
"alters": {
|
|
"status": {
|
|
"uitype": "code",
|
|
"data": [
|
|
{"value": "", "text": "全部"},
|
|
{"value": "published", "text": "已上架"},
|
|
{"value": "unpublished", "text": "已下架"}
|
|
]
|
|
},
|
|
"ppid":{
|
|
"dataurl":"{{entire_url('/pricing/get_all_pricing_programs.dspy')}}",
|
|
"textField": "name",
|
|
"valueField": "id"
|
|
},
|
|
"providerid": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_organizations.dspy')}}"
|
|
},
|
|
"upappid": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_upapps.dspy')}}"
|
|
}
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
}
|