llmage/json/llmusage_history.json
yumoqing 07b4893252 feat(llmage): 添加llmusage历史记录备份和记账失败检索功能
- 新增 llmusage_history 表:定时备份已记账(use_date<today)的历史记录
- 新增 llmusage_accounting_failed 表:记录记账失败详情,支持检索
- 新增 backup_accounted_llmusage() 函数:备份+清理历史数据
- 新增 get_failed_accounting_records() 函数:按条件检索失败记录
- 更新 llm_accoung_failed():同时写入失败表记录
- 新增 failed_accounting.ui 页面和 failed_accounting_list.dspy API
- 新增 llmusage CRUD API (create/update/delete)
- 新增表索引优化查询性能
- 更新 setup_llmage_perms.sh 添加新端点权限
- 生成生产迁移SQL: scripts/migrate_llmusage_history.sql
2026-05-24 13:55:48 +08:00

18 lines
552 B
JSON

{
"tblname": "llmusage_history",
"title": "模型使用历史",
"params": {
"sortby": "use_time desc",
"browserfields": {
"exclouded": ["id"],
"alters": {}
},
"editexclouded": ["id"],
"editable": {
"new_data_url": "{{entire_url('../api/llmusage_history_create.dspy')}}",
"update_data_url": "{{entire_url('../api/llmusage_history_update.dspy')}}",
"delete_data_url": "{{entire_url('../api/llmusage_history_delete.dspy')}}"
}
}
}