erio
7eb3b23ddf
chore: bump version to 0.1.84.6
2026-02-22 19:30:50 +08:00
erio
5b06542193
feat: 更新 Antigravity UserAgent 版本到 1.18.4
2026-02-22 19:30:46 +08:00
erio
38dca4f787
chore: bump version to 0.1.84.5
2026-02-20 12:22:13 +08:00
erio
737d1ecf5b
feat: 新增 gemini-3.1-pro-high/low 模型支持
...
- 后端默认映射新增 gemini-3.1-pro-high、gemini-3.1-pro-low、gemini-3.1-pro-preview
- 前端模型列表新增 gemini-3.1 系列
- 数据库迁移全量覆写 model_mapping
2026-02-20 12:22:02 +08:00
erio
f819cef6d5
chore: bump version to 0.1.84.4
2026-02-20 00:20:07 +08:00
erio
facae2a6db
feat: 新增 claude-sonnet-4-6 模型支持
...
- 后端默认映射、身份注入、迁移文件
- 前端模型列表和快捷映射按钮
2026-02-20 00:16:46 +08:00
liuxiongfeng
8b021c099d
chore: bump version to 0.1.84.3
2026-02-19 22:47:32 +08:00
liuxiongfeng
8a625188ce
Merge release/custom-0.1.83 into release/custom-0.1.84
2026-02-18 22:38:45 +08:00
shaw
074bd0dfda
fix: 临时移除context-1m-2025-08-07以确保避免sonnet1m触发429
v0.1.84
2026-02-18 18:41:30 +08:00
shaw
b41fa5e15f
feat: 前端新增sonnet4.6快捷映射按钮
2026-02-18 17:06:37 +08:00
Wesley Liddick
beceb45d23
Merge pull request #591 from miraserver/main
...
feat: add Cache TTL Override per account
2026-02-18 15:59:25 +08:00
Wesley Liddick
9450edf462
Merge pull request #589 from 0-don/fix/strip-unsupported-codex-params
...
fix: strip unsupported parameters from Codex model requests
2026-02-18 15:58:05 +08:00
Wesley Liddick
785a7397f8
Merge pull request #579 from KortanZ/main
...
fix: accept openai x-stainless-* header to fix CORS error
2026-02-18 15:57:44 +08:00
liuxiongfeng
c0cfa6acde
chore: bump antigravity user-agent to 1.16.5, version to 0.1.83.2
2026-02-18 14:14:29 +08:00
John Doe
3d1f03c286
feat: add Cache TTL Override per account + bump VERSION to 0.1.83
...
- Account-level cache TTL override: rewrite Anthropic cache_creation
token classification (5m↔1h) in streaming/non-streaming responses
- New DB field cache_ttl_overridden in usage_log for billing tracking
- Migration 055_add_cache_ttl_overridden
- Frontend: CacheTTL override toggle in account create/edit modals
- Ent schema regenerated for new usage_log fields
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-17 14:19:24 +03:00
0-don
8ff40f52e0
fix: remove unsupported parameters from Codex model requests
2026-02-17 00:06:32 +01:00
liuxiongfeng
0913cfc082
chore: bump version to 0.1.83.1
2026-02-14 22:03:26 +08:00
liuxiongfeng
59e8465325
Merge release/custom-0.1.81 into release/custom-0.1.83
...
- Resolved conflict in .github/workflows/security-scan.yml: use upstream .gosec.json config
- Resolved conflict in deploy/docker-compose.yml: keep Redis, remove PostgreSQL (use external DB)
2026-02-14 22:03:09 +08:00
liuxiongfeng
be6e8ff77b
fix(ui): extend mixed channel check to both Antigravity and Anthropic accounts
...
Problem:
- When creating Anthropic Console accounts to groups with Antigravity accounts,
the mixed channel warning was not triggered
- Only Antigravity accounts triggered the confirmation dialog
Solution:
- Renamed isAntigravityAccount to needsMixedChannelCheck
- Extended check to include both 'antigravity' and 'anthropic' platforms
- Updated all 8 call sites in CreateAccountModal and EditAccountModal
Changes:
- frontend/src/components/account/CreateAccountModal.vue: 4 updates
- frontend/src/components/account/EditAccountModal.vue: 4 updates
Testing:
- Frontend compilation: passed
- Backend unit tests: passed
- OAuth flow: confirmation parameter correctly passed in Step 2
- Backend compatibility: verified with checkMixedChannelRisk logic
Impact:
- Both Antigravity and Anthropic accounts now show mixed channel warning
- OAuth accounts correctly pass confirm_mixed_channel_risk parameter
- No breaking changes to existing functionality
2026-02-14 21:29:36 +08:00
shaw
a817cafe3d
feat: 区分 Anthropic 5m/1h 缓存创建 token 的差异化计费
...
Anthropic API 的 cache_creation 对象区分了 ephemeral_5m 和 ephemeral_1h
两种缓存创建 token,1h 单价远高于 5m(如 claude-3-5-haiku: 5m=$1/MTok,
1h=$6/MTok)。此前系统统一按 5m 单价计费,导致计费偏低。
后端:
- pricing_service: 加载 LiteLLM 的 cache_creation_input_token_cost_above_1hr
- billing_service: GetModelPricing 启用分类计费(安全守卫 1h>5m),
CalculateCost 按 5m/1h 分别计费,无明细时回退到 5m 单价
- gateway_service: parseSSEUsage/handleNonStreamingResponse 用 gjson
提取嵌套 cache_creation 对象的 ephemeral_5m/1h_input_tokens
- antigravity_gateway_service: extractSSEUsage/extractClaudeUsage 同步提取
- usage_log: 修复 GORM column tag 确保写入正确的数据库列
- 新增迁移 054: 删除 GORM 自动生成的重复列
前端:
- 使用记录 tooltip 展示 5m/1h 缓存创建明细(带彩色 badge 区分)
- 表格单元格缓存写入数值旁显示 1h 标识
v0.1.83
2026-02-14 18:15:35 +08:00
Kortan
ab14df043a
fix: accept openai x-stainless-* header to fix CORS error
2026-02-14 16:52:07 +08:00
Wesley Liddick
2857fa2ef7
Merge pull request #577 from qwIvan/patch-1
...
docker-compose.yml add PGDATA env
v0.1.82
2026-02-14 00:24:23 +08:00
shaw
e681431454
fix: Anthropic 429 限流使用精确的窗口重置时间而非聚合最大值
...
当账号仅触发 5h 窗口限流时,旧逻辑从聚合头
anthropic-ratelimit-unified-reset 读取重置时间,该值为所有窗口的
最大值(即 7d 重置时间),导致账号被标记为不可调度约 6 天。
新增 calculateAnthropic429ResetTime 函数,解析 Anthropic 的
per-window 头(5h-utilization/reset、7d-utilization/reset、
surpassed-threshold),判断实际触发的窗口并使用对应的重置时间:
- 仅 5h 超标 → 使用 5h-reset(约 5 小时)
- 仅 7d 超标 → 使用 7d-reset
- 两者均超标 → 使用 7d-reset(较长冷却)
- per-window 头不存在 → 回退到聚合头(向后兼容)
2026-02-14 00:21:56 +08:00
yang chanfa
5b568aa9d4
docker-compose.yml add PGDATA env
...
`docker-compose.yml` also have to define the `PGDATA` env
2026-02-13 23:47:52 +08:00
Wesley Liddick
471943269c
Merge pull request #573 from wucm667/fix/stat-card-value-overflow
...
修复:StatCard 数值溢出问题
2026-02-13 20:29:12 +08:00
Wesley Liddick
28a5e2f0e6
Merge pull request #570 from wucm667/fix/sidebar-logo-load-flicker
...
fix: 修复侧边栏 Logo 加载时的闪烁问题
2026-02-13 20:29:01 +08:00
Wesley Liddick
b4c22ce6ce
Merge pull request #561 from james-6-23/main
...
feat(admin): Add group filtering for account listings
2026-02-13 20:23:56 +08:00
shaw
5248097f90
fix: 修复 gosec 配置文件格式错误导致 CI 失败
...
gosec -conf 只支持 JSON 格式,将 .gosec.yaml 转换为 .gosec.json
2026-02-13 20:12:50 +08:00
Wesley Liddick
8e2c22d0bd
Merge pull request #571 from wucm667/chore/configure-gosec-exclusions
...
chore: 配置 gosec 排除规则
2026-02-13 20:05:02 +08:00
wucm667
be56a282f2
修复:StatCard 数值溢出问题
...
- 添加 title 属性,鼠标悬停时显示完整数值
- 添加 truncate 类防止数值溢出
- 优化长数值的显示效果
2026-02-13 15:59:30 +08:00
wucm667
5f4eb9f9d0
chore: 配置 gosec 排除规则
...
- 新增 backend/.gosec.yaml 配置文件,排除 G704 (SSRF) 检查
- 更新 security-scan.yml workflow,使用 gosec 配置文件
- 原因:作为 API 网关平台,需要代理请求到配置的上游服务,所有上游 URL 来自管理员配置而非用户输入
2026-02-13 10:48:33 +08:00
wucm667
d1cd5c0a73
Update frontend/src/components/layout/AppSidebar.vue
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-02-13 10:29:26 +08:00
wucm667
5429c74c10
fix: 修复侧边栏 Logo 加载时的闪烁问题
...
- 添加 settingsLoaded 条件判断,确保公共设置加载完成后再显示 Logo
- 避免在设置未加载时显示默认 Logo 造成的闪烁效果
2026-02-13 10:21:17 +08:00
liuxiongfeng
ebb85cf843
chore: bump version to 0.1.81.9
2026-02-13 04:15:12 +08:00
liuxiongfeng
ef959bc3c6
chore: bump version to 0.1.81.8
2026-02-13 03:12:31 +08:00
liuxiongfeng
8cb7356bbc
feat: add mixed-channel precheck flow for antigravity accounts
2026-02-13 03:12:09 +08:00
liuxiongfeng
496545188a
chore: bump version to 0.1.81.7
2026-02-13 00:26:37 +08:00
liuxiongfeng
739c80227a
fix(ui): reset mixed channel warning on close
2026-02-13 00:23:15 +08:00
liuxiongfeng
6218eefd61
refactor(ui): extract mixed channel warning handler
2026-02-13 00:22:14 +08:00
liuxiongfeng
5715587baf
chore: bump version to 0.1.81.6
2026-02-12 23:49:49 +08:00
liuxiongfeng
ae770a625b
fix(ui): mixed channel confirm for upstream create
2026-02-12 23:49:41 +08:00
liuxiongfeng
428ee065d3
chore: bump version to 0.1.81.5
2026-02-12 20:09:57 +08:00
liuxiongfeng
320ca28f90
fix: antigravity 429 fallback uses final model key
2026-02-12 19:30:44 +08:00
liuxiongfeng
5e518f5fbd
feat: allow antigravity warmup intercept toggle
...
- Show warmup-intercept toggle for antigravity accounts in admin UI\n- Add unit tests verifying antigravity accounts are intercepted on /v1/messages
2026-02-12 18:56:55 +08:00
liuxiongfeng
24dcba1d72
chore: gofmt antigravity gateway tests
2026-02-12 18:56:31 +08:00
kyx236
fe1d46a8ea
feat(admin): Add group filtering for account listings
...
- Add groupID parameter to ListAccounts and ListWithFilters methods
- Implement account filtering by group ID in repository query
- Add group query parameter parsing in account handler
- Update all ListAccounts/ListWithFilters call sites with groupID parameter
- Add group filter UI component to AccountTableFilters
- Add i18n translations for group filter label in English and Chinese
- Update API contract and test stubs to reflect new signature
- Enable filtering accounts by their assigned groups in admin panel
2026-02-12 03:47:06 +08:00
liuxiongfeng
1abc688cad
chore: bump version to 0.1.81.4
2026-02-12 02:33:33 +08:00
liuxiongfeng
34936189d8
fix(antigravity): 固定按映射模型计费并补充回归测试
...
当账号配置了 model_mapping 时,确保计费使用映射后的实际模型,
而非用户请求的原始模型名,避免计费不准确。
2026-02-12 02:33:20 +08:00
liuxiongfeng
daf7bf3e8b
docs: Admin API Key 改为从 .env 文件读取,避免明文传递
2026-02-11 23:50:06 +08:00
liuxiongfeng
3a9f1c5796
chore: bump version to 0.1.81.3
2026-02-11 23:37:37 +08:00