- Add data_filter with 4 searchable fields (name LIKE, model LIKE, providerid, upappid) - Add filter_labels for search form display - Create llm_list.dspy with DBFilter support and LIKE wildcard handling - Create llm_create.dspy, llm_update.dspy, llm_delete.dspy - Create get_organizations.dspy and get_upapps.dspy for dropdown options - Add browserfields alters for providerid and upappid dropdowns - Add editable URLs for DataViewer CRUD operations
91 lines
2.4 KiB
JSON
91 lines
2.4 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"}
|
|
]
|
|
},
|
|
"filter_labels": {
|
|
"name_input": "名称",
|
|
"model_input": "识别名",
|
|
"providerid_input": "供应商",
|
|
"upappid_input": "上位系统"
|
|
},
|
|
"browserfields": {
|
|
"exclouded": ["id", "ownerid"],
|
|
"alters": {
|
|
"ppid":{
|
|
"dataurl":"{{entire_url('/pricing/get_all_pricing_programs.dspy')}}",
|
|
"textField": "name",
|
|
"valueField": "id"
|
|
},
|
|
"providerid": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_organizations.dspy')}}",
|
|
"data_field": "organizations",
|
|
"textField": "text",
|
|
"valueField": "id"
|
|
},
|
|
"upappid": {
|
|
"uitype": "code",
|
|
"dataurl": "{{entire_url('../api/get_upapps.dspy')}}",
|
|
"data_field": "upapps",
|
|
"textField": "text",
|
|
"valueField": "id"
|
|
}
|
|
}
|
|
},
|
|
"toolbar": {
|
|
"tools":[
|
|
{
|
|
"name":"test",
|
|
"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}"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
}
|