- 新建 api/llmusage_list.dspy 替代自动生成的 get_llmusage.dspy - 排除 usages/ioinfo 大 TEXT 字段过滤,避免 LIKE 全表扫描 - 分离 count/data 查询,避免 sqlPaging 子查询包装 - 更新 json/llmusage.json get_data_url 指向新脚本 - 更新 scripts/load_path.py 注册新路径
72 lines
2.3 KiB
JSON
72 lines
2.3 KiB
JSON
{
|
|
"tblname": "llmusage",
|
|
"title": "模型使用",
|
|
"params": {
|
|
"sortby": "use_time desc",
|
|
"toolbar": {
|
|
"tools": [
|
|
{
|
|
"name": "show_usages",
|
|
"label": "使用信息",
|
|
"selected_row": true,
|
|
"icon": "{{entire_url('/bricks/imgs/database.svg')}}"
|
|
},
|
|
{
|
|
"name": "show_ioinfo",
|
|
"label": "交互内容",
|
|
"selected_row": true,
|
|
"icon": "{{entire_url('/bricks/imgs/chat-user.svg')}}"
|
|
}
|
|
]
|
|
},
|
|
"binds": [
|
|
{
|
|
"wid": "self",
|
|
"event": "show_usages",
|
|
"actiontype": "urlwidget",
|
|
"target": "PopupWindow",
|
|
"popup_options": {
|
|
"title": "使用信息",
|
|
"width": "70%",
|
|
"height": "70%"
|
|
},
|
|
"options": {
|
|
"url": "{{entire_url('../llmusage_usages_display.dspy')}}?id=${id}$"
|
|
}
|
|
},
|
|
{
|
|
"wid": "self",
|
|
"event": "show_ioinfo",
|
|
"actiontype": "urlwidget",
|
|
"target": "PopupWindow",
|
|
"popup_options": {
|
|
"title": "交互内容",
|
|
"width": "70%",
|
|
"height": "70%"
|
|
},
|
|
"options": {
|
|
"url": "{{entire_url('../llmusage_ioinfo_display.dspy')}}?id=${id}$"
|
|
}
|
|
}
|
|
],
|
|
"browserfields": {
|
|
"exclouded": [
|
|
"id",
|
|
"usages",
|
|
"ioinfo"
|
|
],
|
|
"alters": {}
|
|
},
|
|
"editexclouded": [
|
|
"id",
|
|
"usages",
|
|
"ioinfo"
|
|
],
|
|
"editable": {
|
|
"get_data_url": "{{entire_url('../api/llmusage_list.dspy')}}?pagerows=50",
|
|
"new_data_url": "{{entire_url('../api/llmusage_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('../api/llmusage_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('../api/llmusage_delete.dspy')}}"
|
|
}
|
|
}
|
|
} |