887 Commits

Author SHA1 Message Date
142dcbb02e bugfix 2026-07-20 11:29:06 +08:00
5ea0291af7 feat: 添加 kimi-k3 模型的 llm 和 llm_api_map 配置
- 新增 llm 表记录: kimi-k3-llm (月之暗面 Kimi K3)
- 新增 llm_api_map 映射: t2t (纯文本) + vision/tm2t (多模态)
- uapiio 记录已存在,无需新增

完成 kimi-k3 模型的完整数据库配置
2026-07-20 11:19:02 +08:00
e0855b6415 refactor: 将 kimi-k3 多模态内容构建改为纯 Jinja2 模板
- 删除 build_kimi_content() Python 函数
- 在 SQL data 模板中用纯 Jinja2 语法构建 content 数组
- 新增 file_to_b64() 和 file_mime() 辅助函数注册到 ServerEnv
- 保持向后兼容,功能不变
2026-07-20 10:48:22 +08:00
ce17c48022 feat: build_kimi_content 迁入 llimage/utils.py,自含 webpath→base64 转换 2026-07-17 18:12:17 +08:00
c8b7d0cd07 refactor: kimi_t2t data 模板 — build_kimi_content 一行搞定多模态 2026-07-17 17:58:09 +08:00
f1930af597 feat: kimi_t2t 支持多模态 — 图片/视频通过 webpath_to_base64 转 data URI 2026-07-17 17:52:07 +08:00
afced72c3c fix: kimi uapi 补全 uapiio 定义,移除所有占位符 2026-07-17 17:42:07 +08:00
20833b8e90 feat: Kimi K3 API 接入 — 对话补全+文件管理 6 个 uapi 2026-07-17 17:35:18 +08:00
3d47867bd3 revert(llmage): undo unauthorized model_plaza modification 2026-07-17 16:35:24 +08:00
d82a8b554f feat(llmage): add pricing query tab to model plaza 2026-07-17 16:10:24 +08:00
929dd017f9 fix(llmage): model_pricing returns widget tree, simplified UI 2026-07-17 16:09:12 +08:00
233b5db481 feat(llmage): model pricing query page — select model, display pricing table 2026-07-17 16:08:08 +08:00
6ab53eca2b fix: llm_create.dspy 补充 ownerid 自动注入(logined_userorgid 对自定义端点不生效) 2026-07-14 18:22:11 +08:00
3a2da1e636 fix: retry accounting button - add credentials:include to fetch call 2026-07-14 14:18:02 +08:00
83e1fa8ba3 feat: load_product_category_product返回providerid
将llm.providerid传递给product_management的导入流程
2026-07-13 14:53:46 +08:00
e5f55fc3f3 fix: model codes table supplychain.suppliers -> suppliers to avoid get_code.dspy SQL error 2026-07-10 10:55:00 +08:00
f0d3550b63 fix: use get_sor_context(rbac) to query suppliers in sage db 2026-07-10 09:26:21 +08:00
3ae70d2c92 fix: providerid 下拉从 suppliers 表而非 organization 获取 2026-07-10 09:21:32 +08:00
6186d15fee refactor: providerid codes → supplychain.suppliers 2026-07-09 13:39:09 +08:00
802ab896d8 fix: correct tab/space indentation — tabs for sync/async/llmclient, spaces for product_interface 2026-07-09 11:43:53 +08:00
064df40b4a fix: tab/space indentation in tenantid lines 2026-07-09 11:42:22 +08:00
fd65b5a59e feat: write tenantid to llmusage from API request params
Populate llmusage.tenantid from params_kw.tenantid in all 6 inference paths:
syncinference, product_interface, llmclient, asyncinference
2026-07-09 11:38:43 +08:00
8f63d20f57 docs: 删除冗余status模型,标注异步状态通过/v1/tasks查询 2026-07-08 15:22:11 +08:00
a61e60deff cleanup: 删除冗余status端点(realesrgan/synth),统一走query_apiname 2026-07-08 15:20:39 +08:00
6c030b0a01 cleanup: 移除media端点中的空if transno块 2026-07-08 13:49:36 +08:00
b8de8db76f fix: 14个media端点移除冗余uuid生成,统一走inference+getID() 2026-07-08 13:42:38 +08:00
fe82251e2e feat: /v1/media/{apiname} 14端点(KTV GPU服务) 2026-07-07 21:28:05 +08:00
8556564455 chore: remove llm_metrics and user_llm_policy from git tracking
These are generated CRUD files, not source code.
2026-07-07 18:02:57 +08:00
43e8b40774 feat: multi-currency billing — llmusage currency fields + real-time exchange 2026-07-07 15:43:03 +08:00
cf16d60893 refactor: drop cost from llmusage, add tenantid, clean references
- Remove cost field from llm_charging, get_accounting_llmusages, backup, syncinference
- Add tenantid column migration SQL
2026-07-07 12:23:51 +08:00
6759a84ea1 fix: int(params_kw._is_mobile or 0) 防止NoneType 2026-07-06 16:59:21 +08:00
0c5fdadd89 docs: KTV定价改为按量计费 2026-07-06 16:10:35 +08:00
fd95eadfe6 fix: v1/pricing端点也加model过滤,避免同ppid下串模型价格 2026-07-06 15:57:25 +08:00
c0097b7735 fix: Filler→VBox定价区,同show_llms_cards 2026-07-06 15:46:25 +08:00
b5a63d412c fix: 1)get_pricing_display加model过滤避免混入其他模型价格 2)卡片布局分开描述VScrollPanel+定价VBox确保定价始终可见 2026-07-06 15:44:44 +08:00
109d081a3f fix: wrap description+pricing in VScrollPanel so long descriptions don't push pricing off-screen
- show_llms_cards.ui: card-body-scroll VScrollPanel wraps Text(desc) + Filler(pricing)
- show_llms_cards_by_provider.ui: same fix
2026-07-06 15:08:51 +08:00
c2af41d5f4 fix: 参数命名 _url→_file 统一规范,修复重复表述 2026-07-06 11:59:57 +08:00
b884d70814 docs: update ky-demucs-separate model desc — add MIDI replace 2026-07-06 11:55:46 +08:00
af2f562208 feat: 新增 /v1/pipeline/submit 端点 + 更新KTV Pipeline API文档为14个原子化模型 2026-07-06 11:42:46 +08:00
60c7254898 docs: 新增视频制作API(KTV产线) 2026-07-05 14:12:17 +08:00
ad7d9086ce fix: CRUD endpoint return format - remove json.dumps, use widgettype format 2026-07-03 14:50:40 +08:00
a5b72244ae fix: llm_update returns widgettype format so Form dispatches submited and popup closes 2026-07-03 13:06:12 +08:00
9200d9f20a bugfix 2026-07-03 10:45:36 +08:00
e27137055c fix: 体验一次→打开llm_dialog实战推理;检查计费→真正调用llm_query_price算价 2026-07-02 14:54:50 +08:00
57fb8c3c8f fix: llm_launch_check_api returns JSON instead of plain text — urldata actiontype expects valid JSON 2026-07-02 14:22:52 +08:00
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
76673bf251 fix: catelog tab target should be app.llm_dialog_root (self container), not app.sage_main_content (main area) 2026-07-02 12:08:15 +08:00
f85913a235 fix: catelog tabs use urlwidget bind instead of invalid actiontype:link — Button does not handle actiontype in opts, only in binds 2026-07-02 11:23:17 +08:00
70b5502a18 fix: always use llm.model (vendor model name) instead of user-passed model param 2026-07-01 17:24:40 +08:00
99b292fd17 Revert "feat: 复制API功能-工具栏按钮+弹窗选源/目标+后台复制"
This reverts commit d57b8dbc73f3ee1797586e84fafe83793e112859.
2026-07-01 15:28:22 +08:00