28 Commits

Author SHA1 Message Date
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
34627054b1 feat: code-type fields use fieldname/fieldname_text format
- get_search_providerid.dspy: return {providerid, providerid_text}
- get_search_upappid.dspy: return {upappid, upappid_text}
- get_search_apiname.dspy: return {apiname, apiname_text}
- json/llm.json: add valueField/textField for providerid, upappid
- json/llm_api_map.json: add valueField/textField for apiname, query_apiname

This ensures filter form and add/edit form use the same data format.
2026-06-12 11:40:54 +08:00
ca1abb008a bugfix 2026-06-09 13:53:14 +08:00
dfb0794ee2 bugfix 2026-06-09 13:51:41 +08:00
3a0a8d4c86 feat: 添加模型上线检查功能
- 新增 llm_launch_check_api.dspy:执行完整的上线前检查
  * 检查模型记录、日期、状态
  * 检查上位系统(upapp)关联
  * 检查API映射(uapi)
  * 检查IO定义(uapiio)
  * 检查能力映射(llm_api_map)
  * 检查定价项目(pricing_program)
  * 检查定价数据(pricingdata)
  * 支持体验测试(action=inference)
- 新增 llm_launch_check.ui:检查结果展示界面
- 修改 llm.json:将'体验'按钮改为'上线检查'
- 更新 load_path.py:注册新路径
2026-06-04 18:11:12 +08:00
e6958f277b fix: remove invalid data_url override pointing to non-existent api/get_llm.dspy 2026-06-04 17:32:47 +08:00
bb4900f997 feat: add get_search_{fieldname}.dspy for codes fields with 全部 option
- get_search_providerid.dspy: organization list with 全部 as first entry
- get_search_upappid.dspy: upapp list with 全部 as first entry
- json/llm.json: update alters dataurl to use search scripts
- load_path.py: register new RBAC paths
2026-06-04 17:22:50 +08:00
cfa355a7a5 refactor: 删除自定义llm_list.dspy,改用CRUD自动生成的get_llm.dspy 2026-05-31 20:01:41 +08:00
93e3f17a67 fix: 恢复providerid/upappid的alters配置,llm_list.dspy返回_text字段用于列表展示 2026-05-31 19:53:19 +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
57d77dc819 fix: status字段改用uitype:code+data格式,移除providerid/upappid的废弃属性textField/valueField 2026-05-31 15:48:09 +08:00
2f2841c16c fix: 为providerid和upappid的alter添加显式的textField和valueField 2026-05-31 15:46:39 +08:00
d84cc1d859 fix: API返回纯数组格式,添加模型上下架功能
- get_organizations/get_upapps/uapi_options: 返回纯数组[{value,text}]
- 新增 get_catelogs/get_apis/get_ppids: 独立下拉数据API
- llm_api_map_manage.ui: 使用独立API替代data_field嵌套格式
- json/llm.json: 移除data_field,添加上架/下架toolbar
- llm_status_update.dspy: 模型上下架状态更新API
- 重新生成 llm/index.ui CRUD界面
2026-05-30 01:43:09 +08:00
d6e4221a7b feat: add model publish/unpublish (上架/下架) functionality
- llm table: add status field (published/unpublished, default unpublished)
- User-facing queries: filter by status='published' in 11 query points:
  - utils.py: get_llms_by_catelog_to_customer, get_llms_by_catelog,
    get_llm, get_llmproviders, get_llms_sort_by_provider
  - v1 endpoints: chat/completions, image/generations, video/generations
  - user pages: t2t, get_type_llms, list_catelog_models,
    list_paging_catelog_llms, llmcheck
- CRUD: status column visible/editable with select dropdown
- Admin CRUD list shows ALL models regardless of status
- Migration SQL: sql/add_status_field.sql (existing models set to published)
2026-05-28 23:42:29 +08:00
9aa917bce5 feat: add data_filter and CRUD endpoints for llm table
- Add data_filter with 4 searchable fields (name LIKE, model LIKE, providerid, upappid)
- Add filter_labels for search form display
- Create llm_list.dspy with DBFilter support and LIKE wildcard handling
- Create llm_create.dspy, llm_update.dspy, llm_delete.dspy
- Create get_organizations.dspy and get_upapps.dspy for dropdown options
- Add browserfields alters for providerid and upappid dropdowns
- Add editable URLs for DataViewer CRUD operations
2026-05-26 14:26:38 +08:00
489ba1ad88 bugfix 2026-05-24 19:48:36 +08:00
21df5fdc80 bugfix 2026-05-21 16:50:55 +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
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
3ddf1a545d bugfix 2026-05-19 15:32:16 +08:00
baee3e08dc bugfix 2025-12-22 16:25:19 +08:00
66523723a4 bugfix 2025-12-22 16:21:41 +08:00
7851e80822 bugfix 2025-09-04 13:47:32 +08:00
668ab8f585 bugfix 2025-09-01 18:55:16 +08:00
ae0cf46c59 first commit 2025-07-16 14:19:09 +08:00