- 07 Apr, 2026 3 commits
-
-
shaw authored
Anthropic近期引入基于system参数内容的第三方应用检测机制,原有的前置追加 Claude Code提示词策略无法通过检测(后续内容仍为非Claude Code格式触发429)。 新策略:对非Claude Code客户端的OAuth/SetupToken账号请求,将system字段 完整替换为Claude Code标识提示词,原始system内容作为user/assistant消息对 注入messages开头,模型仍接收完整指令。 仅影响/v1/messages路径,chat_completions和responses路径保持原有逻辑不变。 真正的Claude Code客户端请求完全不受影响(原样透传)。
-
Wesley Liddick authored
fix(openai): fail over passthrough 429 and 529
-
Wesley Liddick authored
解决账号管理中“正常”筛选包含限流中账号
-
- 05 Apr, 2026 30 commits
-
-
shaw authored
-
shaw authored
-
github-actions[bot] authored
-
Wesley Liddick authored
解决issue#1453提到的反重力不可用问题
-
shaw authored
The previous Sora removal missed several frontend references, causing TypeScript build errors for sora_client_enabled and a missing SoraView.vue import. Clean up all remaining Sora code from types, router, sidebar, settings, store, and accounts API.
-
Wesley Liddick authored
fix(channel): remove cross-platform pricing/mapping leakage for antigravity groups
-
Wesley Liddick authored
revert: completely remove Sora platform
-
erio authored
Antigravity groups were incorrectly matching pricing and model mapping entries from anthropic/gemini platform tabs. Each platform should be strictly isolated — antigravity groups only use antigravity-tagged pricing.
-
erio authored
-
erio authored
Restore gateway_service.go, setting_handler.go, routes/admin.go, dto/settings.go, group_repo.go, api_key_repo.go, wire_gen.go to upstream/main versions and surgically remove only Sora references. This preserves upstream-only features (RequireOauthOnly, RequirePrivacySet, GroupResolution, etc.) that were missing when using release branch versions.
-
erio authored
-
erio authored
-
shaw authored
When a channel has no model mapping for the requested model, ChannelMappedModel equals OriginalModel (the user's arbitrary input). Combined with the default BillingModelSource="channel_mapped", this incorrectly overrides the BillingModel set by the OpenAI format conversion layer (e.g., gpt-5.4 from DefaultMappedModel) back to the unmapped original model (e.g., glm) which has no pricing — resulting in zero-cost billing. Add guard condition so the channel_mapped override only fires when the channel actually changed the model (ChannelMappedModel != OriginalModel).
-
erio authored
-
erio authored
-
erio authored
This component is used by SettingsView.vue for backup/data management. It was mistakenly deleted as "Sora storage management" but contains non-Sora backup functionality from upstream.
-
erio authored
-
erio authored
- Remove media_type column from all INSERT/SELECT/SCAN in usage_log_repo - Remove media_type mock arg from request_type and integration tests - Adjust scan stub value arrays from 47 to 46 elements
-
erio authored
-
erio authored
-
erio authored
- gofmt: user.go, config_test.go, group_handler.go, smart_retry_test.go - Remove unused: mergeGroupIDs, resolveProxyURL, "time" import - Fix api_contract_test.go: remove extra Sora args from NewAdminService, NewSettingHandler, NewAccountHandler; remove Sora field expectations - Fix account_test_service_openai_test.go: restore test helpers
-
erio authored
- Run gofmt on user schema, config test, group handler - Remove unused mergeGroupIDs function - Restore shared test helpers (newJSONResponse, queuedHTTPUpstream) that were in deleted Sora test file
-
erio authored
The options parameter only served to switch between 'openai' and 'sora' platforms. With Sora removed, the parameter is unnecessary.
-
erio authored
- Remove unused accessTokenInput ref from OAuthAuthorizationFlow - Remove unused parsedSessionToken* computed and handleValidateSessionToken - Prefix unused options parameter in useOpenAIOAuth
-
erio authored
- Remove handleImportAccessToken event binding from CreateAccountModal - Remove unused imports/variables from OAuthAuthorizationFlow (useAppStore, parsedAccessToken*, handleImportAccessToken) - Remove unused oauthPlatform variable from useOpenAIOAuth composable
-
erio authored
-
erio authored
-
github-actions[bot] authored
-
偷得浮生 authored
-
偷得浮生 authored
-
- 04 Apr, 2026 7 commits
-
-
Wesley Liddick authored
feat(channel): add channel management with multi-mode pricing and billing integration
-
erio authored
- applyRequestTierOverrides now uses filterValidIntervals consistently with applyTokenOverrides (per_request/image modes were not filtering) - CostInput accepts optional pre-resolved pricing via Resolved field, eliminating duplicate Resolver.Resolve() calls in gateway billing paths
-
erio authored
- Remove unused claudeMax*Tokens constants (Claude Max feature not included) - Remove unused UsageMapHook type, SetUsageMapHook method, and usageToMap function - Fix gofmt formatting in channel_service.go, openai_model_mapping_test.go, chatcompletions_to_responses.go
-
erio authored
Restore account_usage_service.go, antigravity_gateway_service.go, antigravity_credits_overages.go and its test to upstream/main state. These credits balance precheck changes were accidentally included during cherry-pick of channel management commits.
-
erio authored
Eliminates unnecessary indirection layer. The wrapper function only called normalizeCodexModel with a special case for "gpt 5.3 codex spark" (space-separated variant) that is no longer needed. All call sites now use normalizeCodexModel directly.
-
erio authored
- Add int64(0) param to SelectAccountWithLoadAwareness callers (signature change from channel scheduling refactor) - Add UsageMapHook type and struct field to StreamingProcessor - Revert Claude Max cache billing code to upstream/main (not part of channel feature) - Revert credits overages logic to upstream/main (non-channel change) - Remove Instructions field reference (non-channel OpenAI feature) - Restore sora_client_handler_test.go from upstream + add channel service nil params
-
erio authored
- Change channel cache TTL from 60s to 10min (reduce unnecessary DB queries) - Actively rebuild cache after CRUD instead of lazy invalidation - Add slog.Warn logging for channel pricing restriction blocks (4 places)
-