540 Commits

Author SHA1 Message Date
711e4fa6f9 buggix 2026-05-22 14:43:17 +08:00
90a036e6a9 buggix 2026-05-22 14:39:08 +08:00
7523e67214 buggix 2026-05-22 14:28:51 +08:00
2f29674ec0 buggix 2026-05-22 14:27:47 +08:00
5d836a4504 buggix 2026-05-22 13:38:54 +08:00
90a8d83096 buggix 2026-05-22 13:36:30 +08:00
15a5e1d362 buggix 2026-05-22 13:34:24 +08:00
2ab106648f buggix 2026-05-22 13:12:30 +08:00
7cd93a7999 buggix 2026-05-22 13:06:02 +08:00
27a846c3c9 buggix 2026-05-22 13:01:43 +08:00
6a430112f4 buggix 2026-05-22 12:58:03 +08:00
522425051d buggix 2026-05-22 12:06:51 +08:00
fa5dd78cca buggix 2026-05-22 12:02:14 +08:00
1dd071e310 buggix 2026-05-22 11:51:35 +08:00
2661ebbc77 buggix 2026-05-22 11:48:25 +08:00
66ed700261 bugfix 2026-05-22 11:33:02 +08:00
7e6054c230 buggix 2026-05-22 11:25:21 +08:00
b7a9bd11c7 buggix 2026-05-22 11:24:02 +08:00
5cc249e691 buggix 2026-05-21 23:34:43 +08:00
3e886938be bugfix 2026-05-21 17:33:35 +08:00
c1fa4004a2 bugfix 2026-05-21 17:19:36 +08:00
d5b1d934c1 bugfix 2026-05-21 17:12:59 +08:00
21df5fdc80 bugfix 2026-05-21 16:50:55 +08:00
9b7f0e79fc bugfix 2026-05-21 16:35:50 +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
f1498178cc fix(llm_api_map_manage): 修正uitype规范+VScrollPanel滚动+llmid隐藏字段
- select→code, text→str, number→int 对齐bricks uitype规范
- 表单区域父容器改用VScrollPanel(height:500px)防止超出屏幕
- llmid改为uitype:hidden, 从params_kw.llmid获取值(从llm CRUD tool触发)
- 移除llmid的select下拉和label
2026-05-21 16:11:40 +08:00
ca21d5cf25 bugfix 2026-05-21 15:53:53 +08:00
9f4a64b6af fix: llm.json subtable add url pointing to llm_api_map_manage.ui (avoid unregistered /llmage/llm_api_map path) 2026-05-21 15:12:27 +08:00
71d366f73d bugfix 2026-05-21 13:59:21 +08:00
abafdb4eb9 bugfix 2026-05-21 13:35:00 +08:00
6031efaa67 bugfix 2026-05-21 13:33:32 +08:00
449e9db1f4 bugfix 2026-05-21 13:25:20 +08:00
76622381be bugfix 2026-05-21 13:19:48 +08:00
81bed1d384 feat: add json table definitions for all models (converted from xlsx) 2026-05-21 12:46:20 +08:00
17f6855b5a feat: add deployment scripts for llm_api_map migration
- scripts/migrate_llm_api_map_db.py: Direct DB migration (create table + migrate data)
  Supports --dry-run and --drop-old flags
- scripts/deploy_llmage.sh: One-click deployment script
  Orchestrates: git pull -> build -> migrate -> perms -> restart
2026-05-21 10:59:15 +08:00
6f851895fe feat: add permissions script for llm_api_map management (Admin + Operator level)
- scripts/setup_llmage_perms.sh: shell-based permission init following sage convention
- Replaces deleted Python/SQL permission scripts
- Authorizes: owner.superuser, *.admin roles, reseller.operator
- Covers: llm_api_map_manage.ui + all CRUD API endpoints + uapi_options
2026-05-20 18:01:53 +08:00
715e759be9 feat: add permission scripts for llm_api_map endpoints
- scripts/add_llm_api_map_perms.sql: SQL to insert permission records
- scripts/add_llm_api_map_perms.py: Python script using getID() for ID generation
- Covers all new llm_api_map CRUD endpoints and uapi_options
2026-05-20 17:36:09 +08:00
1060cac2de feat: llm_api_map CRUD management and ownerid-based data isolation
- Update json/llm.json subtable from llm_catelog_rel to llm_api_map
- Rewrite json/llm_api_map.json as standard CRUD format (tblname+params)
- Add models/llm_api_map.json table definition (summary/fields/indexes/codes)
- Add independent management UI (llm_api_map_manage.ui)
- Add CRUD DSPY APIs (list/create/delete/options) with ownerid filtering
- All operations verify l.ownerid for data isolation
- Add uapi_options.dspy for API selection dropdown
2026-05-20 17:29:27 +08:00
70e8fd791f fix: remove duplicate m.query_apiname from get_llm SQL (a.* already contains it) 2026-05-20 16:55:24 +08:00
334dcc5947 fix: update llm_api_map field lengths to 32 (getID() standard) 2026-05-20 16:41:28 +08:00
d2ffd9c6d0 refactor: introduce llm_api_map table and remove uapiset intermediate layer
- New llm_api_map table: extract ability-specific fields (apiname,
  query_apiname, query_period, ppid) from llm table to support
  one-model-multi-ability without redundancy
- Remove uapiset from llmage JOIN chain: upapp.apisetid now directly
  joins uapi.apisetid
- Updated BufferedLLMs.get_llm() to JOIN llm_api_map for
  query_apiname/query_period/ppid fields
- Updated llmcheck.dspy and list_paging_catelog_llms.dspy to remove
  uapiset references
- Added migration script to generate llm_api_map INSERTs from existing
  llm data
2026-05-20 15:13:07 +08:00
f9a7293c46 bugfix 2026-05-19 21:27:46 +08:00
37ef130591 bugfix 2026-05-19 21:22:52 +08:00
e7ca580a1c bugfix 2026-05-19 21:21:22 +08:00
7679047bc4 bugfix 2026-05-19 21:19:28 +08:00
2562ddf5b0 bugfix 2026-05-19 21:14:47 +08:00
b93106305f bugfix 2026-05-19 17:42:45 +08:00
3f57ce2c21 bugfix 2026-05-19 17:31:39 +08:00
2ff084ac3b bugfix 2026-05-19 17:26:56 +08:00
f3e6e3152d bugfix 2026-05-19 16:56:30 +08:00