9 Commits

Author SHA1 Message Date
6c2ccda2c7 修复llmusage展示脚本500错误并优化CRUD性能
- 将llmusage_ioinfo_display.ui和llmusage_usages_display.ui从Jinja模板改为.dspy脚本
- 在utils.py中添加get_llmusage_by_id和read_ioinfo_content两个函数
- 重写get_llmusage.dspy,避免sqlPaging子查询包装,分离count和data查询
- 为llmusage表添加use_time索引提升排序性能
- 更新load_path.py和json/llmusage.json引用新的.dspy文件
2026-06-26 17:55:52 +08:00
c2c0f93001 llmage: hide usages/ioinfo columns, add toolbar buttons with popup windows 2026-06-26 11:30:05 +08:00
Hermes Agent
1aa28430e0 refactor: appcodes编码改用models codes段定义,清理json alters 2026-06-17 19:09:51 +08:00
Hermes Agent
eaf440a6a9 feat: 添加llmage编码字典init/data.json,CRUD alters改用appcodes数据源 2026-06-17 18:04:44 +08:00
1096e85720 bugfix 2026-06-10 16:17:25 +08:00
9019f6c48e fix: 仅删除llm.json中providerid和upappid的alters,恢复其他文件 2026-05-31 19:41:24 +08:00
c345238eaa fix: 删除browserfields中的alters配置 2026-05-31 19:40:18 +08:00
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
8f82a72d94 bugfix 2025-11-13 14:19:19 +08:00