20 Commits

Author SHA1 Message Date
146ebb2b4a feat: add /v1/video/generations and /v1/image/generations API endpoints
- wwwroot/v1/video/generations/index.dspy: video generation endpoint
  Required params: model, llmcatelogid, prompt
  Supports async task submission via existing inference infrastructure

- wwwroot/v1/image/generations/index.dspy: image generation endpoint
  Required params: model, llmcatelogid, prompt
  Supports both sync and async models depending on config

Both endpoints follow the same pattern as /v1/chat/completions:
  1. Validate required params (model + llmcatelogid + prompt)
  2. Look up llm via llm_api_map join with catalog type
  3. Check customer balance
  4. Route to inference (async/sync based on model config)
2026-05-26 11:45:37 +08:00
e98d9fbce0 bugfix 2026-05-23 22:24:26 +08:00
80f1bae7c7 buggix 2026-05-23 22:22:40 +08:00
9636779d24 buggix 2026-05-23 22:21:58 +08:00
f370277438 buggix 2026-05-23 22:10:17 +08:00
f361200d5c buggix 2026-05-23 22:08:26 +08:00
aca610dd87 bugfix 2026-05-23 21:54:17 +08:00
e587f31c5e bugfix 2026-05-23 21:51:41 +08:00
8c070c692a bugfix 2026-05-23 21:48:46 +08:00
8ca04ba691 bugfix 2026-05-23 21:44:53 +08:00
410ab1d2e4 buggix 2026-05-22 15:47:00 +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
76622381be bugfix 2026-05-21 13:19:48 +08:00
6cc3986a2d feat: support multi-catalog for LLMs
- Create llm_catalog_rel model for one-to-many relationship
- Remove llmcatelogid from llm model
- Update SQL queries in utils.py and dspy files to use join
- Add maintenance UI (llm_catalog_rel_manage.ui) and API endpoints
- Filter options by user's orgid
2026-05-16 21:31:19 +08:00
a5c459599a bugfix 2026-05-08 11:02:00 +08:00
6afbc71b13 bugfix 2026-05-08 10:54:33 +08:00
f324cbf9f7 bugfix 2026-04-23 17:43:37 +08:00
29f488b280 bugfix 2026-04-23 17:32:03 +08:00
df3257ef14 bugfix 2026-04-02 13:34:41 +08:00
adb3d9b30d bugfix 2026-04-01 13:38:46 +08:00