Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
91c9b8d
feat(channel): 渠道管理系统 — 多模式定价 + 统一计费解析
touwaeriol Apr 4, 2026
983fe58
fix: CI lint/test fixes — gofmt, errcheck, handler test args
touwaeriol Mar 29, 2026
dca0054
feat(channel): 模型标签输入 + $/MTok 价格单位 + 左开右闭区间 + i18n
touwaeriol Mar 29, 2026
29d58f2
feat(channel): 模型映射 + 分组搜索 + 卡片折叠 + 冲突校验
touwaeriol Mar 29, 2026
ebac0dc
feat(channel): 缓存扁平化 + 网关映射集成 + 计费模式统一 + 模型限制
touwaeriol Mar 30, 2026
36990a0
fix: revert ent schema change to fix runtime panic
touwaeriol Mar 30, 2026
28a6ada
fix(channel): 分组紧凑布局+平台颜色名称+计费基准重命名+表单排序调整
touwaeriol Mar 30, 2026
0b1ce6b
feat(channel): 缓存扁平化 + 网关映射集成 + 计费模式统一 + 模型限制
touwaeriol Mar 30, 2026
12d03e4
feat(channel): 模型价格自动填充 + 默认定价 API
touwaeriol Mar 30, 2026
ce69470
fix(i18n): 渠道管理页面标题国际化
touwaeriol Mar 30, 2026
14e565a
fix(channel): 分组加载时序修复 — 预加载 + await 确保分组数据就绪
touwaeriol Mar 30, 2026
95751d8
feat(channel): 对话框 Tab 布局 — 基础设置 + 平台独立 Tab + 固定高度
touwaeriol Mar 30, 2026
b06cd06
feat(channel): 平台配置改为勾选式,勾选后出现 Tab 但不自动跳转
touwaeriol Mar 30, 2026
faff177
debug(channel): 添加 formToAPI 调试日志 + 移除 Sora 平台
touwaeriol Mar 30, 2026
726730b
fix(channel): splice替换model_pricing条目 + 增强调试日志
touwaeriol Mar 30, 2026
a51e004
feat(usage): 使用记录增加计费模式字段 — 记录/展示/筛选 token/按次/图片
touwaeriol Mar 30, 2026
632035a
feat(billing): 网关计费迁移到 CalculateCostUnified + 模型限制错误统一
touwaeriol Mar 30, 2026
0fbc9a4
fix(billing): 按次计费回退到默认 PerRequestPrice
touwaeriol Mar 30, 2026
8d03c52
feat(channel): 通配符定价匹配 + OpenAI BillingModelSource + 按次价格校验 + 用户端计费模式展示
touwaeriol Mar 30, 2026
91bdcf8
fix(channel): 模型限制用映射后模型检查 + 平台开关保留配置不删除
touwaeriol Mar 30, 2026
4ea8b4c
refactor(channel): 抽取渠道映射公共函数 + OpenAI映射到body + 空响应修复 + 清理日志
touwaeriol Mar 30, 2026
eb38545
fix(channel): 全平台渠道映射覆盖 + 公共函数抽取 + 死代码清理
touwaeriol Mar 31, 2026
3457bcb
fix(channel): 修复 invalidateCache 存入 typed nil 导致 loadCache panic
touwaeriol Mar 31, 2026
6c99cc6
fix(channel): 渠道表单校验增强 — 空模型定价报错 + 必填标记
touwaeriol Mar 31, 2026
8875940
feat(channel): 模型映射源支持通配符匹配
touwaeriol Mar 31, 2026
705131e
fix(channel): 前端重复模型校验改为按平台检查
touwaeriol Mar 31, 2026
dfe3fdc
fix(channel): 模型限制以原始请求模型检查定价列表,而非映射后模型
touwaeriol Mar 31, 2026
58f2044
fix(ui): 渠道定价折叠态模型名完整展示,不再截断
touwaeriol Mar 31, 2026
ddd495f
feat(ui): 渠道列表状态列改为 Toggle 开关,支持直接启用/禁用
touwaeriol Mar 31, 2026
40cebc2
feat(ui): 渠道表单模型标签和映射输入框显示平台对应颜色
touwaeriol Mar 31, 2026
c90d1f2
fix(ui): 模型映射输入框改为平台色字体,保持默认边框
touwaeriol Mar 31, 2026
669bff7
fix(ui): 模型映射改用平台色字体,删除多余的边框色函数
touwaeriol Mar 31, 2026
2555951
feat(channel): 渠道管理全链路集成 — 模型映射、定价、限制、用量统计
touwaeriol Mar 31, 2026
d72ac92
feat: image output token billing, channel-mapped billing source, cred…
touwaeriol Apr 1, 2026
3851628
fix: resolve golangci-lint issues
touwaeriol Apr 1, 2026
c9145ad
fix: golangci-lint test assertion and gofmt
touwaeriol Apr 1, 2026
35a9290
fix: add cost nil guard to Anthropic/Antigravity RecordUsage paths
touwaeriol Apr 1, 2026
c0b5900
feat(ui): display three-level model mapping chain in usage logs
touwaeriol Apr 1, 2026
8d25335
fix: antigravity groups now match anthropic/gemini channel pricing
touwaeriol Apr 1, 2026
2355029
fix: validate empty intervals + antigravity platform pricing match
touwaeriol Apr 1, 2026
5534347
test: add unit tests for channel platform matching, interval validati…
touwaeriol Apr 1, 2026
9b21311
fix: address audit findings - cache sync, validation, consistency
touwaeriol Apr 1, 2026
a9e5fc8
fix(ui): floating point precision in perTokenToMTok conversion
touwaeriol Apr 1, 2026
1b2ea7a
fix(ui): also fix floating point precision in mTokToPerToken
touwaeriol Apr 1, 2026
38da737
feat: channel token pricing takes priority over per-image billing
touwaeriol Apr 1, 2026
b8c56ff
fix: validate prices must be >= 0, remove debug logs
touwaeriol Apr 1, 2026
f3ab3fe
fix: billing mode display follows cost calculation result
touwaeriol Apr 1, 2026
212eaa3
fix(ui): show token breakdown when image model uses token billing
touwaeriol Apr 1, 2026
0d241d5
refactor: replace magic strings with named constants
touwaeriol Apr 1, 2026
6c71857
refactor(ui): extract formatCacheTokens and formatMultiplier to share…
touwaeriol Apr 1, 2026
6de1d0c
refactor: split buildCache into sub-functions, reduce nesting 5→2
touwaeriol Apr 1, 2026
d3127b8
refactor: use structured error responses in channel handler
touwaeriol Apr 1, 2026
3cd398b
refactor: extract computeTokenBreakdown to deduplicate billing logic
touwaeriol Apr 1, 2026
b453c32
refactor: split channelToResponse into pricingToResponse + intervalTo…
touwaeriol Apr 1, 2026
58b26cb
refactor: merge RecordUsage and RecordUsageWithLongContext into share…
touwaeriol Apr 1, 2026
b4a42a6
refactor: extract helpers to reduce duplication and function length i…
touwaeriol Apr 1, 2026
ce41afb
refactor: move channel model restriction from handler to scheduling p…
touwaeriol Apr 2, 2026
1fca2bf
fix: address review findings for channel restriction refactoring
touwaeriol Apr 2, 2026
6d3ea64
test: add unit tests for channel pricing restriction in scheduling phase
touwaeriol Apr 2, 2026
71f61bb
fix: resolve 5 audit findings in channel/credits/scheduling
touwaeriol Apr 2, 2026
feb6999
fix: channel cache fail-close, group conflict check across pages, sta…
touwaeriol Apr 2, 2026
58f758c
feat(channel): improve cache strategy and add restriction logging
touwaeriol Apr 3, 2026
e59fa86
fix: resolve cherry-pick compilation and test issues
touwaeriol Apr 4, 2026
e27b0ad
refactor: remove resolveOpenAIUpstreamModel, use normalizeCodexModel …
touwaeriol Apr 4, 2026
d4ff835
revert: remove antigravity credits precheck logic (not part of channe…
touwaeriol Apr 4, 2026
1b5ae71
fix: resolve golangci-lint issues — remove unused constants and funct…
touwaeriol Apr 4, 2026
e88b289
refactor: unify interval filtering and eliminate redundant Resolve calls
touwaeriol Apr 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions backend/cmd/server/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 18 additions & 14 deletions backend/ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading