dalamudx
017d08d45e
test(claude-code): 批量授权测试兼容授权后异步额度刷新
2026-09-30 02:19:15 +08:00
dalamudx
7f45617f79
fix(claude-code): 修复 clippy needless_borrow 并更新不再受支持的 claude_code 额度刷新测试
2026-09-30 01:43:22 +08:00
dalamudx
9cc4018a37
fix(claude-code): 额度查询携带 x-app/claude-cli UA 以获取 cedar_ember,并在无重置机会时显式清空
2026-09-30 00:29:18 +08:00
dalamudx
b49f5c0fd7
feat(claude-code): 只读展示重置机会(cedar_ember)并补齐额度文案国际化
2026-09-29 23:55:27 +08:00
dalamudx
125cd40aa5
feat(claude-code): 被动采样 anthropic-ratelimit-unified 响应头更新额度
2026-09-29 22:57:39 +08:00
dalamudx
491364867e
feat(claude-code): 提供商详情抽屉展示账号 5H/周额度
2026-09-29 22:40:45 +08:00
dalamudx
8093899b5a
feat(claude-code): 支持通过 /api/oauth/usage 查询账号 5H/周额度并在号池展示
2026-09-29 22:40:44 +08:00
dalamudx
fa06e9695d
test(claude-code): 补充 Responses → claude_code 网关测试,验证上游请求体已伪装
2026-09-29 20:27:43 +08:00
dalamudx
5d5880d75e
fix(claude-code): 让 openai:responses/chat 转 claude 的路径也应用请求体伪装
...
openai:responses 与 openai:chat 的决策构建器各自构建上游 body,不经过
apply_transport_request_body_semantics,导致跨格式请求转发到 claude_code
provider 时请求体伪装没有生效,上游仍返回 429。
- responses/decision/request.rs:finalize 之后应用伪装
- chat/decision/request.rs:finalize 成功后应用伪装
- 同格式路径改为经 ai_serving::transport 门面引用,满足架构守卫
(ai_serving 不得直接依赖 crate::provider_transport)
- 更新 chat -> claude_code 用例断言为新的请求体形态
2026-09-29 20:18:03 +08:00
dalamudx
e8ee7b4ecf
fix(claude-code): 升级伪装的 Claude Code 版本到 2.1.284
...
上游按模型校验 Claude Code 最低版本,claude-opus-5-5 要求 >= 2.1.280,
而 profile 里写死的 2.1.161 会被拒绝(claude_code_version_too_old, 400),
且 Aether 会统一改写 UA,真实 Claude Code 客户端也会受影响。
将 cli_version 升级为 2.1.284,并同步 stainless 包版本 (0.112.1) 与
node 运行时版本 (v26.3.0),保持指纹一致;相关测试断言同步更新。
2026-09-29 18:47:59 +08:00
dalamudx
c1aa5d618d
feat(claude-code): 为 claude_code provider 补全 Claude Code 请求体特征
...
非 Claude Code 客户端(如 pi)经 OAuth 的 claude_code provider 转发时,
只有请求头被伪装成 Claude Code,请求体仍是客户端原样,被上游以
429 rate_limit_error 拒绝(响应无 ratelimit 额度头,并非真实限流)。
参考 sub2api 的 OAuth 请求体伪装,在传输层补齐请求体:
- system 重写为计费头 + 身份句 + 通用提示词三块(Fable 仅保留前两块)
- 原 system 迁入 messages 开头,避免丢失客户端指令
- 缺失时补 metadata.user_id,device/session id 基于 key 稳定派生
- 缺失时补 tools/temperature/max_tokens,并限制 cache_control 不超过 4 个
- 已带计费块且有 metadata.user_id 的真实 Claude Code 请求原样放行,
重复应用幂等
接入点覆盖跨格式路径(apply_transport_request_body_semantics)和
原生 claude:messages 同格式路径,仅作用于 provider_type=claude_code。
2026-09-29 18:35:23 +08:00
wangpengxiang
593327c803
refactor(stats): pass query object to raw usage summary
2026-09-21 13:07:25 +08:00
wangpengxiang
a9a7c64e5d
fix(stats): scope group usage by providers and add ungrouped view
2026-09-21 12:49:48 +08:00
dalamudx
906baae88e
fix(gemini): preserve tool thought signatures
2026-09-20 01:01:26 +08:00
wangpengxiang
a95f0d2488
feat(stats): add user group usage views
2026-09-18 16:24:03 +08:00
wangpengxiang
4124749a7d
fix(ai-serving): route provider-aware normalization through root seams
...
Move Antigravity schema-preservation policy into the format crate and expose provider-aware Chat and Responses builders through the existing gateway root seam. Preserve legacy conversion and scoped Responses history behavior without weakening architecture tests.
Validated: 61 standalone architecture tests, 947 format tests, 527 transport tests, 2 actual-source planner tests, and gateway cargo check.
2026-09-17 15:38:27 +08:00
wangpengxiang
5a55116b62
fix(antigravity): harden tool schemas and Claude thought replay
...
Preserve tool schemas across provider-scoped format conversion and OpenAI gateway planners until the Antigravity boundary. Bound reference expansion, safely merge schema constraints, and lower unsupported Claude unions.
Drop unsigned historical Claude thinking without changing Gemini behavior. Add cross-format regression fixtures and retain the project's original error output policy.
Validation: 945 format tests and 527 transport tests passed; gateway cargo check passed.
2026-09-17 15:38:27 +08:00
dalamudx
b0fc6e68ef
fix: add icon_url to mysql generated baseline
2026-05-17 22:00:28 +08:00
dalamudx
e1a73be2e1
fix: update schema baselines, logical schema, and snapshot cutoff for icon_url
2026-05-17 21:52:36 +08:00
dalamudx
cf2c74e8e8
fix: add new migration version to test whitelist
2026-05-17 21:42:56 +08:00
dalamudx
2cb01f7a69
fix: add missing icon_url arg in test helper
2026-05-17 21:40:54 +08:00
dalamudx
48deff15c4
fix(oauth): fix login failures and add provider icon_url config
...
- Fix FIND_OAUTH_LINKED_USER_SQL missing allowed_providers_mode columns
- Fix TOUCH_OAUTH_LINK_SQL json/jsonb type mismatch in COALESCE
- Add icon_url field to OAuth provider config (DB, API, frontend)
- Fix admin OAuth test: accept 404 as reachable, use system proxy
2026-05-17 21:33:02 +08:00