|
|
354f556099
|
feat: 新增 llm_metrics 和 user_llm_policy 两张表
llm_metrics: 从 llmusage 抽取的轻量指标表
- userid, llmid, use_date, input/output/total tokens
- amount, responsed_seconds, finish_seconds
user_llm_policy: 用户模型策略(customer.admin 管理)
- 每个用户每个模型可单独设限
- daily/monthly_call_limit, spending_alert/ceiling, max_concurrency
- 缺省空=不限
- orgid+userid+llmid 唯一约束
菜单新增: 用户模型策略、模型使用指标
|
2026-07-02 13:16:18 +08:00 |
|
|
|
96317c1512
|
feat(llmage): menu.ui 添加记账失败记录菜单项
|
2026-05-24 15:36:33 +08:00 |
|
|
|
5b3c7d4d02
|
refactor: 废弃llm_catalog_rel表, 分类关系改用llm_api_map
- 删除 llm_catalog_rel 表定义(models/json/xlsx)、CRUD文件、管理页面、迁移脚本
- utils.py: get_llms_by_catelog/get_llms_by_catelog_to_customer 的SQL从 llm_catalog_rel 改为 llm_api_map (加distinct去重)
- init.py: 缓存清除事件从 llm_catalog_rel 改为 llm_api_map
- menu.ui/index.ui: 移除类型关联菜单项
- dspy文件: v1/chat/completions, t2t, get_type_llms, list_catelog_models, list_paging_catelog_llms, llmcatelog_delete 全部改为 join llm_api_map
- 迁移脚本: 添加try/except兼容旧表不存在的情况
|
2026-05-21 16:22:59 +08:00 |
|
|
|
efee227cf1
|
feat: add catalog relation management entry in menu
- Add 类型关联 menu item pointing to llm_catalog_rel_manage.ui
- Allows managing LLM to catalog (type) relations from menu
|
2026-05-17 01:08:32 +08:00 |
|
|
|
d37df70e1b
|
bugfix
|
2026-01-06 11:46:01 +08:00 |
|
|
|
a1f369c454
|
bugfix
|
2025-12-22 13:18:23 +08:00 |
|
|
|
c941f12869
|
bugfix
|
2025-08-29 22:29:32 +08:00 |
|