e7045ab6ba
fix(shell): sageReloadMenu always sets sidebar width and updates toggle icon
...
Previously sageReloadMenu only set sidebar width when collapsed (64px).
When expanded, the inline width was never restored, leaving the sidebar
potentially stuck at collapsed width after menu rebuild. The menu text
widgets (filler class with overflow:hidden) would clip labels to ~1 char.
Now both collapsed (64px) and expanded (240px) states explicitly set
sidebar.el.style.width and updateSidebarIcon after menu rebuild.
2026-07-27 11:12:37 +08:00
aebce71599
迁移api_doc到sage/docs/,多语言支持已由docs/api_doc_*.md接管
2026-07-21 13:39:30 +08:00
456d33ffe4
feat(dashboard): add monthly new users stat card to layout
2026-07-17 15:52:42 +08:00
2753714f4c
docs: 腾讯混元5模型API文档(hy3/vision2.0/image3.0/video1.5)
2026-07-08 16:11:36 +08:00
70678de6db
docs: 豆包3模型API文档(doubao-2.1-pro/seedream-5.0/speech-2.0)
2026-07-08 16:00:22 +08:00
5d63b249e0
docs: KTV定价从flat改为按量计费(秒/次/条/张)
2026-07-06 16:10:34 +08:00
22d9d8540d
fix: KTV API文档参数命名改为_file规范
2026-07-06 11:59:57 +08:00
3eb7d5514c
docs: update demucs-separate — add separate_full MIDI replace mode
2026-07-06 11:55:45 +08:00
de3fcfa8a9
docs: KTV Pipeline API文档重写 — 从11个聚合模型改为14个原子化端点模型,使用新 /v1/pipeline/submit 端点
2026-07-06 11:42:48 +08:00
811e80d8a9
docs: 新增视频制作API(28端点KTV产线)
2026-07-05 14:11:06 +08:00
4028d00584
feat: 客户dashboard新增按用户统计(今日/本月+总计)
...
load_dashboard.py:
- get_customer_users_today: 今日各用户调用次数+金额,含总计行
- get_customer_users_month: 本月各用户调用次数+金额,含总计行
customer_usage.ui: 底部嵌入 customer_users_table.ui
customer_users_table.ui: 左右双栏 Tabular(今日|本月)
api/: customer_users_today.dspy + customer_users_month.dspy
scripts/load_path.py: +3条路径注册
2026-07-02 14:06:15 +08:00
Hermes Agent
dfad387358
移除临时文件,添加/更新.gitignore
2026-06-22 15:00:26 +08:00
Hermes Agent
2a7be96ec9
fix: use accounting_status='accounted' instead of !='failed'
...
Only explicitly accounted records count as successful transactions.
2026-06-19 15:23:03 +08:00
Hermes Agent
7dd85acafa
feat: add i18n translations (zh/en/jp/ko) for all modules
2026-06-19 15:01:23 +08:00
Hermes Agent
35ba31a554
fix: exclude failed accounting from today stats + add click nav to failed records
...
1. load_dashboard.py: get_today_usage/amount and trend functions now
filter out accounting_status='failed' records so failed transactions
are not counted as successful.
2. stat_errors.ui: added click bind to navigate to llmage failed
accounting records page (app.sage_main_content target).
2026-06-19 14:45:26 +08:00
Hermes Agent
2fcf32c863
dashboard: 去除热门模型刷新按钮
2026-06-18 10:48:15 +08:00
Hermes Agent
39e8df47b5
chore: 添加json/build.sh脚本
2026-06-17 17:26:20 +08:00
Hermes Agent
0d0c5b70bd
docs: 添加Seedance R2V多模态参考生视频示例
2026-06-17 15:40:50 +08:00
d51018aeff
docs: add GET /v1/pricing endpoint to API documentation
2026-06-11 15:59:30 +08:00
677ebae525
docs: add music, TTS, ASR API endpoints to customer-facing documentation
...
- POST /v1/music/generations: MiniMax Music 2.6/2.5 with lyrics structure tags
- POST /v1/audio/speech: MiniMax Speech 2.6 Turbo/HD, 2.5 HD, F5-TTS
- POST /v1/audio/transcriptions: qwen3-asr-flash, Nvidia parakeet-tdt-0.6b-v2
- Includes curl examples, response formats, model lists, error codes
2026-06-04 14:07:00 +08:00
23816650ab
docs: 图像生成API全部改为同步模式,修正响应格式与实际API一致
...
- 删除所有异步模型描述(qwen-image-plus系列改为同步)
- 修正成功响应:usage字段按实际返回(万象含tokens,千问含宽高)
- 修正失败响应:两种实际格式(参数缺失/模型不存在)
- 修正image URL:dashscope OSS → token.opencomputing.cn/idfile
- 修正size格式:1024x1024 → 1024*1024
- 各模型明细节删除重复的成功/失败响应示例
- /v1/tasks标注仅用于视频生成等异步任务
2026-06-03 23:59:26 +08:00
e1bde5d801
fix: add H1 heading for LLM API section to enable proper sidebar grouping
2026-06-03 10:47:48 +08:00
5ed5053bfd
feat: 百分比后添加↑↓箭头指示趋势方向
2026-06-03 10:39:38 +08:00
066baae242
bugfix
2026-06-02 20:17:56 +08:00
ed6c9eb31f
bugfix
2026-06-02 20:14:51 +08:00
8a1ec5efdc
bugfix
2026-06-02 20:11:38 +08:00
bf4bc441b1
fix: virtual human API section heading level (H2 -> H1, H3 -> H2)
2026-06-02 17:58:25 +08:00
e64e08da6f
fix: close unclosed Bearer token quotes in curl examples (8 lines)
2026-06-02 17:45:17 +08:00
4dc0603d5f
docs: add virtual human asset API documentation
...
- Add 5 virtual human API endpoints (rl_virtual_create_group, rl_virtual_groups, rl_virtual_upload, rl_virtual_status, rl_virtual_assets)
- Include complete request/response examples with curl test cases
- Add virtual human error documentation
- Restore real person asset error documentation
2026-06-02 17:34:15 +08:00
8b05c8628f
docs: add curl test examples for all API endpoints in api_doc.md
2026-06-02 17:11:17 +08:00
067b1003e3
docs: fix image/generations general response example to match actual UAPI response
2026-06-02 16:36:13 +08:00
4ac95125d7
docs: fix image generation response format - remove outer wrapper, use direct UAPI response
2026-06-02 16:25:17 +08:00
0d73c74c4d
docs: add wan2.7 image models, fix qwen-image response format to match UAPI template
2026-06-02 15:49:44 +08:00
89ff1cdbb3
docs: remove jimeng, cogview and wan-async image models, keep qwen-image only
2026-06-02 15:18:35 +08:00
ad58dab697
docs: add qwen-image-2.0 and qwen-image-plus models to image generation API docs
2026-06-02 15:08:27 +08:00
aa2c553ff0
docs: add GET /v1/models/catelog endpoint to API docs
2026-06-02 11:21:30 +08:00
398e90fa17
fix: dashboard布局重构 - 修复遮挡/热门模型金额/今日指标缺失
...
1. 热门模型: valueFields改为[total_amount, cnt],与用户/供应商一致
2. 布局重构:
- 第一行: 今日调用总量+今日交易金额(2个50%宽卡片)
- 第二行: 用户总数+活跃用户+在线用户+记账异常(4个25%宽卡片)
- 第三行: 热门模型+用户排行+供应商排行(3个33%宽图表)
3. 图表高度统一250px,间距16px
4. 移除ResponsableBox改用HBox,避免卡片溢出遮挡
5. 移除stat_new_users_month和stat_total_orgs,精简指标
2026-06-02 00:25:12 +08:00
a1fb0089ad
force: re-sync load_dashboard.py (ensure full 614-line version)
2026-06-01 16:50:58 +08:00
401c7a15bb
fix: restore load_dashboard.py (truncated), use CSS vars for dark mode, improve card spacing
2026-06-01 16:39:57 +08:00
759d629bb3
fix: fullscreen background color and stat card layout
2026-06-01 16:14:56 +08:00
bf5cf2b1b2
fix: fullscreen targets dashboard container instead of entire page
2026-06-01 16:09:05 +08:00
966c89080b
fix: reduce margins, padding, chart heights to eliminate scrollbar
2026-06-01 16:08:14 +08:00
c89c0d89de
refactor: arrange model/user/provider charts in single row
2026-06-01 15:56:14 +08:00
80785e7ace
fix: use entire_url() for chart data URLs to include module prefix
2026-06-01 15:52:10 +08:00
9cc59160e8
feat: add trend indicators and color accents to stat cards
...
- Add get_usage_trend() and get_amount_trend() functions for day-over-day comparison
- Display trend arrows (up/down/flat) with percentage change in stat_today_usage and stat_today_amount
- Add colored left borders to all stat cards for visual distinction:
- Blue: usage, total users
- Purple: amount, total orgs
- Green: active users, new users this month
- Cyan: concurrent users
- Red: errors
- Enhance visual hierarchy with accent colors matching SVG icons
2026-06-01 15:49:46 +08:00
855f376671
refactor: consolidate rankings into combined charts
...
- Change top models from Top 3 to Top 5
- Simplify titles: remove 'Top X' and parenthetical details
- Replace separate user tables (by amount/by count) with single ChartBar
- Replace separate provider tables with single ChartBar
- Add get_top_users_combined and get_top_providers_combined functions
2026-06-01 15:41:40 +08:00
c9e860c691
remove quick-links panel, chart takes full width
2026-06-01 15:34:18 +08:00
8bed983919
fix: hide '我的今日模型使用' card for non-customer roles
...
Remove duplicate unprotected card that was always rendered regardless
of role, causing 403 for non-customer users. Keep only the customer-
only version wrapped in {% if 'customer.*' in roles %}.
2026-06-01 15:32:16 +08:00
66f588cd80
add reseller.* role support alongside owner.*
2026-06-01 15:28:36 +08:00
69264b6ec6
restrict my-today-models and customer-monitor to customer.* role only
2026-06-01 15:25:29 +08:00