- 07 Mar, 2026 8 commits
-
-
shaw authored
-
shaw authored
golangci-lint v2.7 was built with Go 1.25 and cannot lint Go 1.26 targets. v2.8+ added Go 1.26 support.
-
Wesley Liddick authored
Fix/empty streamfix issue #791
-
Wesley Liddick authored
fix(ccswitch): improve import provider name and usage parsing
-
Wesley Liddick authored
fix(account): preserve existing credentials when saving apikey accounts
-
shaw authored
GO-2026-4602 (os), GO-2026-4601 (net/url), GO-2026-4600 and GO-2026-4599 (crypto/x509). The crypto/x509 fixes are only available in go1.26.1+, not backported to go1.25.x.
-
shaw authored
对齐/v1/responses的Forward方法,修复两处不一致: - 成功响应时从响应头提取OAuth账号的Codex使用量数据 - 非failover错误场景下应用管理员配置的错误透传规则
-
Wesley Liddick authored
fix(usage): 修复用量查询 429 重试风暴,增加负缓存、请求去重与随机延迟
-
- 06 Mar, 2026 32 commits
-
-
ckken authored
-
ckken authored
-
JIA-ss authored
- Fix gofmt: align struct field comments in UsageCache, trim trailing whitespace on const comments - Fix errcheck: use comma-ok on type assertion for singleflight result Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
JIA-ss authored
Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
JIA-ss authored
Prevents 429 rate-limit retry storms and reduces upstream correlation risk for Anthropic usage API queries. Three changes: 1. Negative caching (1 min TTL) — 429/error responses are now cached, preventing every subsequent page load from re-triggering failed API calls. 2. singleflight dedup — concurrent requests for the same account are collapsed into a single upstream call, preventing cache stampede. 3. Random jitter (0–800 ms) — staggers multi-account cache-miss bursts so requests from different accounts don't hit upstream simultaneously with identical TLS fingerprints, reducing anti-abuse correlation risk. Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
Gemini Wen authored
When customErrorCodes is disabled or modelMapping is empty, explicitly delete the fields inherited from currentCredentials spread to avoid preserving stale values. Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
Gemini Wen authored
-
Wesley Liddick authored
fix: Setup Token 账号使用真实 utilization 值替代状态估算
-
Wesley Liddick authored
fix(openai): 修复 WS 模式下用量窗口不显示
-
shaw authored
-
神乐 authored
-
神乐 authored
-
神乐 authored
-
FizzlyCode authored
从响应头 anthropic-ratelimit-unified-5h-utilization 获取并存储真实 utilization 值,解决进度条始终显示 0% 的问题。窗口重置时清除旧值, 避免残留上个窗口的数据。 Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
神乐 authored
-
神乐 authored
-
Elysia authored
-
Elysia authored
-
Gemini Wen authored
When editing an apikey account, the credentials object was built from scratch, causing fields like tier_id that are not exposed in the UI to be silently dropped on save. Spread currentCredentials first so unknown fields are retained, then let the known fields overwrite them. Co-Authored-By:Claude Sonnet 4.6 <noreply@anthropic.com>
-
Wesley Liddick authored
feat(openai): 添加 /v1/messages 端点和 API 兼容层
-
Wesley Liddick authored
fix(openai): support remote compact task
-
神乐 authored
-
Wesley Liddick authored
fix(openai): 统一专属倍率计费链路并补齐回归测试
-
Wesley Liddick authored
fix: 修复账号列表五小时用量显示为 $0.00 的问题
-
yangjianbo authored
移除订阅扣费 stub 中未被使用的状态字段与赋值, 消除 golangci-lint 的 unused 告警,保持回归测试语义不变。 Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
yangjianbo authored
抽取共享的用户分组专属倍率解析器,统一缓存、singleflight 与回退逻辑。\n\n让 OpenAI 独立计费链路复用专属倍率解析,修复 usage 记录与实际扣费未命中用户专属倍率的问题。\n\n补齐 OpenAI 计费与解析器单元测试,并修复全量回归中暴露的 lint 阻塞项。\n\nCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
-
wioos authored
commit 80ae592c 引入 lite 模式优化首次加载性能,但将窗口费用查询也一起跳过了。 commit 491a7444 尝试用 30 秒快照缓存修复,但缓存过期后问题复现。 移除窗口费用查询的 lite/非 lite 区分,始终执行 PostgreSQL 聚合查询。 同时删除不再需要的 account_window_cost_cache.go 文件。 Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
-
wioos authored
在 admin.proxies 下添加 protocols 对象的中文翻译, 与 en.ts 保持一致。 Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
alfadb authored
- Add recoverAnthropicMessagesPanic for Messages handler to return Anthropic-formatted errors instead of OpenAI Responses format on panic - Add nil check for rateLimitService.HandleUpstreamError in ForwardAsAnthropic to match defensive pattern used elsewhere Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
alfadb authored
Add Anthropic Messages API support for OpenAI platform groups, enabling clients using Claude-style /v1/messages format to access OpenAI accounts through automatic protocol conversion. - Add apicompat package with type definitions and bidirectional converters (Anthropic
↔ Chat, Chat↔ Responses, Anthropic↔ Responses) - Implement /v1/messages endpoint for OpenAI gateway with streaming support - Add model mapping UI for OpenAI OAuth accounts (whitelist + mapping modes) - Support prompt caching fields and codex OAuth transforms - Fix tool call ID conversion for Responses API (fc_ prefix) - Ensure function_call_output has non-empty output field Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
Wesley Liddick authored
fix(openai): passthrough accounts bypass model mapping check
-
erio authored
透传模式账号仅替换认证,应允许所有模型通过。之前调度阶段的 isModelSupportedByAccount 不感知透传模式,导致 model_mapping 中未配置的新模型(如 gpt-5.4)被拒绝返回 503。
-