Skip to content

sync(upstream): 10 commits from upstream - #38

Merged
mergify[bot] merged 13 commits into
mainfrom
sync/upstream-ae17f2749d16-86ac0f7745cc
Aug 24, 2026
Merged

mergify[bot] merged 13 commits into
mainfrom
sync/upstream-ae17f2749d16-86ac0f7745cc

Conversation

@clyang82

Copy link
Copy Markdown

Upstream Sync: 10 Commits

Upstream Commits

SHA Intent Type Risk
ae17f2749d16 Revert opaque background/z-index on the JSON code editor's line-number layer that was overlaying and hiding highlighted editor content, accepting the prior horizontal-scroll gutter overlap as a known cosmetic tradeoff bugfix low
8b41defbe0d9 Register the new Gemini GA image models 'gemini-3-pro-image' and 'gemini-3.1-flash-image' in the channel model list and mark them as image-generation models in default Gemini settings feature medium
08f88d25e588 Add key-format-based dispatch for the Tencent channel so single-segment TokenHub API keys are routed through the OpenAI-compatible adaptor (with the TokenHub base URL) while legacy three-segment ak/sk keys continue using the native TC3 adaptor. feature medium
ab65d2582feb Fix the wallet recharge form so the topup amount field can be fully cleared (empty string no longer reset to "0" by the prop-sync effect), and enforce the global minimum topup per payment method via Math.max with getMinTopupAmount. bugfix low
3e1e72827988 Add a 500ms debounce to the users table search input to avoid triggering filtering/fetching on every keystroke (performance improvement) feature low
2d23cdf29154 Adds admin-configurable per-tool pricing with cross-provider surcharge settlement in billing, a new Sub2API upstream channel type, a /v1/alpha/search relay endpoint, and surcharge breakdown display in the usage-log UI. feature medium
bc14c18f6024 Removes the legacy unrefunded-failed-task reconciliation sweep and its CAS tests, advances the refund legacy cutoff to 2026-02-22, and gates the async-task poller on unfinished sync tasks instead of the old polling-work check. breaking high
398cdafecf29 Adds a new 'New API' upstream channel type with its own relay adaptor, API/channel type constants, an OpenAI ResponseCompact endpoint type, and corresponding web UI configuration, refactoring shared logic out of the Sub2API adaptor. feature medium
f51dd4d808d1 Allow the Advanced Custom API type to use Responses Compact by adding APITypeAdvancedCustom to the IsResponsesCompactAPIType allowlist bugfix medium
86ac0f7745cc Extract the protocol conversion layer (dto, types, relayconvert, reasonmap) into a standalone, dependency-free 'relaykit' Go submodule, decoupling converters from gin/RelayInfo/settings via new convmeta.Meta/convmeta.Options and kitutil abstractions, with byte-level conversion behavior pinned by golden snapshot tests refactor high

Affected Surfaces

  • /v1/alpha/search endpoint (new relay route + RelayMode)
  • APITypeNewAPI
  • Channel UI key prompt/i18n strings for TokenHub keys
  • ChannelTypeNewAPI
  • Converter signatures: context.Context replaces *gin.Context throughout relayconvert
  • Docker build: relaykit/go.mod copied before go mod download; GOWORK=off, go.work for dev
  • EndpointTypeOpenAIResponseCompact
  • GeminiSettings.ImageGenerationModelList
  • IsResponsesCompactAPIType
  • RechargeFormCard
  • RelayInfo.ConvOptions()
  • Tencent channel API key format contract (pipe-separated TC3 key vs single-segment TokenHub key)
  • Tencent channel default base URL behavior for TokenHub keys (https://tokenhub.tencentmaas.com)
  • UsersTable.toolbarProps.searchDebounceMs
  • claude.default_max_tokens option key (negative values now rejected at the option API)
  • constant.APITypeSub2API
  • constant.ChannelTypeSub2API
  • constant.EndpointTypeOpenAIAlphaSearch
  • convmeta.Meta (new interface implemented by RelayInfo; replaces *relaycommon.RelayInfo in converter signatures)
  • convmeta.Options / convmeta.Format (settings snapshot injected into converters; OpenRouterDialect and Claude.DefaultMaxTokens hooks)
  • dto.AlphaSearchRequest
  • dto.Request.IsStream(*http.Request) (was *gin.Context)
  • dto/channel_settings: new channel setting fields
  • gemini.ModelList
  • github.com/QuantumNous/new-api/relaykit (new standalone Go module; dto/types/relayconvert/reasonmap import paths moved)
  • kitutil (LogInfo/LogError hooks, Debug flag, MaskSensitiveInfo, JSON/pointer/uuid helpers)
  • model.GetUnrefundedFailedTasks (removed)
  • model.HasTaskPollingWork (no longer referenced; presumed removed)
  • model.HasUnfinishedSyncTasks (new poller enablement gate)
  • model.TaskRefundLegacyCutoff (value changed 1740182400 -> 1771718400)
  • relay/channel/newapi.Adaptor (new channel adaptor registration)
  • relay/channel/sub2api.Adaptor
  • relay/common tool-usage/surcharge extraction helpers
  • service/text_quota: tool-surcharge settlement in quota accounting
  • setting/operation_setting: admin-configurable tool price option keys
  • sharedclaude.ErrMissingMaxTokens (OpenAI Chat/Responses -> Claude now errors instead of emitting invalid request when no max_tokens)
  • tencent.DispatchAdaptor
  • tencent.DispatchAdaptor.GetChannelName
  • tencent.DispatchAdaptor.GetModelList
  • tencent.DispatchAdaptor.Init
  • types.EndpointType / finish-reason values (moved from constant; constant re-exports)
  • usage-log surcharge fields in web log types/columns
  • web channel type constants/config for the New API channel

Transformations Applied

Downstream File Confidence Notes
web/src/styles/index.css high upstream diff applied directly via git apply
relay/channel/gemini/constant.go high upstream diff applied directly via git apply
setting/model_setting/gemini.go high upstream diff applied directly via git apply
relay/channel/tencent/dispatch.go high upstream diff applied directly via git apply
relay/channel/tencent/dispatch_test.go high upstream diff applied directly via git apply
relay/common/relay_info.go high upstream diff applied directly via git apply
relay/relay_adaptor.go high upstream diff applied directly via git apply
web/src/i18n/locales/en.json high upstream diff applied directly via git apply
web/src/i18n/locales/zh-TW.json high upstream diff applied directly via git apply
web/src/i18n/locales/zh.json high upstream diff applied directly via git apply
web/src/features/channels/constants.ts high The upstream change only updates the Tencent (type 23) key-format prompt in TYPE_TO_KEY_PROMPT. The downstream line 23 is byte-identical to upstream's pre-image; git apply failed only because the neighboring hunk context differs (line 50 says 'CubeRouter' downstream vs 'New API' upstream, per the fork's rebrand conventions). Applied the identical one-line replacement for entry 23, anchored by lines 22/33 for uniqueness. (applied 1 targeted edits)
web/src/features/wallet/components/recharge-form-card.tsx high upstream diff applied directly via git apply
web/src/features/wallet/index.tsx high upstream diff applied directly via git apply
web/src/features/users/components/users-table.tsx high upstream diff applied directly via git apply
common/endpoint_defaults.go high upstream diff applied directly via git apply
constant/endpoint_type.go high upstream diff applied directly via git apply
controller/option.go high upstream diff applied directly via git apply
controller/relay.go high upstream diff applied directly via git apply
dto/alpha_search_request.go high upstream diff applied directly via git apply
dto/channel_settings.go high upstream diff applied directly via git apply
dto/channel_settings_test.go high upstream diff applied directly via git apply
dto/gemini.go high upstream diff applied directly via git apply
dto/openai_response.go high upstream diff applied directly via git apply
model/option.go high upstream diff applied directly via git apply
relay/alpha_search_handler.go high upstream diff applied directly via git apply
relay/alpha_search_handler_test.go high upstream diff applied directly via git apply
relay/channel/claude/relay-claude.go high upstream diff applied directly via git apply
relay/channel/claude/tool_billing_test.go high upstream diff applied directly via git apply
relay/channel/codex/adaptor.go high upstream diff applied directly via git apply
relay/channel/codex/adaptor_test.go high upstream diff applied directly via git apply
relay/channel/gemini/relay-gemini.go high upstream diff applied directly via git apply
relay/channel/gemini/relay_responses.go high upstream diff applied directly via git apply
relay/channel/openai/relay-openai.go high upstream diff applied directly via git apply
relay/channel/openai/relay_responses_billing_test.go high upstream diff applied directly via git apply
relay/channel/openai/stream_tool_billing_test.go high upstream diff applied directly via git apply
relay/channel/sub2api/adaptor.go high upstream diff applied directly via git apply
relay/channel/sub2api/adaptor_test.go high upstream diff applied directly via git apply
relay/channel/sub2api/constants.go high upstream diff applied directly via git apply
relay/common/relay_info.go high upstream diff applied directly via git apply
relay/common/tool_usage.go high upstream diff applied directly via git apply
relay/common/tool_usage_test.go high upstream diff applied directly via git apply
relay/constant/relay_mode.go high upstream diff applied directly via git apply
relay/constant/relay_mode_test.go high upstream diff applied directly via git apply
relay/helper/valid_request.go high upstream diff applied directly via git apply
router/relay-router.go high upstream diff applied directly via git apply
service/text_quota.go high upstream diff applied directly via git apply
service/text_quota_test.go high upstream diff applied directly via git apply
service/tool_billing.go high upstream diff applied directly via git apply
setting/operation_setting/tools.go high upstream diff applied directly via git apply
setting/operation_setting/tools_price_test.go high upstream diff applied directly via git apply
types/relay_format.go high upstream diff applied directly via git apply
web/src/assets/custom/icon-sub2api.tsx high upstream diff applied directly via git apply
web/src/components/ui/badge.tsx high upstream diff applied directly via git apply
web/src/features/channels/lib/advanced-custom.ts high upstream diff applied directly via git apply
web/src/features/channels/lib/channel-type-config.ts high upstream diff applied directly via git apply
web/src/features/channels/lib/channel-utils.ts high upstream diff applied directly via git apply
web/src/features/system-settings/models/__tests__/tool-price-validation.test.tsx high upstream diff applied directly via git apply
web/src/features/system-settings/models/tool-price-settings.tsx high upstream diff applied directly via git apply
web/src/features/usage-logs/components/__tests__/cost-display.test.tsx high upstream diff applied directly via git apply
web/src/features/usage-logs/components/columns/common-logs-columns.tsx high upstream diff applied directly via git apply
web/src/features/usage-logs/components/log-cost-display.tsx high upstream diff applied directly via git apply
web/src/features/usage-logs/lib/__tests__/tool-surcharge.test.ts high upstream diff applied directly via git apply
web/src/features/usage-logs/lib/format.ts high upstream diff applied directly via git apply
web/src/features/usage-logs/types.ts high upstream diff applied directly via git apply
web/src/i18n/locales/en.json high upstream diff applied directly via git apply
web/src/i18n/locales/zh-TW.json high upstream diff applied directly via git apply
web/src/i18n/locales/zh.json high upstream diff applied directly via git apply
web/src/lib/lobe-icon.tsx high upstream diff applied directly via git apply
common/api_type.go high The patch failed only because the downstream file has an extra case (ChannelTypeAstraFlow) between ChannelTypeCodex and ChannelTypeAdvancedCustom, so the upstream hunk context did not match. The function structure is otherwise identical, so the same two lines are added in the same position: a new case mapping constant.ChannelTypeSub2API to constant.APITypeSub2API placed after the ChannelTypeAdvancedCustom case, matching upstream ordering. This assumes ChannelTypeSub2API and APITypeSub2API constants exist (or will be added by the corresponding constant-file changes in the same upstream commit); this file alone only needs the switch-case addition. (applied 1 targeted edits)
common/endpoint_type.go high The apply failed only because the downstream Sora case was extended with fallthrough cases (ChannelTypeAstraFlow, ChannelTypeDoubaoVideo), so the upstream anchor 'case constant.ChannelTypeSora: ... }' did not match. The intent is unchanged: add Sub2API and Codex cases after the OpenAIVideo group and before default. I anchored on the DoubaoVideo assignment + 'default:' which is unique in the file. Assumes the constants ChannelTypeSub2API, ChannelTypeCodex, EndpointTypeOpenAIAlphaSearch, EndpointTypeOpenAIResponseCompact exist (or will be added) in the constant package via the companion upstream change to constant files — this file only references them by name, same as upstream. Kept the exact body of the upstream-added cases verbatim. (applied 1 targeted edits)
constant/api_type.go high The patch failed because the downstream fork added APITypeAstraFlow between APITypeCodex and APITypeAdvancedCustom, breaking the upstream context. The intent is unchanged: insert APITypeSub2API immediately before the APITypeDummy sentinel (which must stay last, per its comment). Anchored on APITypeAdvancedCustom + APITypeDummy, which appearing together exactly once. Adding the new constant after APITypeAdvancedCustom appends it at the end of the downstream enum, preserving all existing downstream values including AstraFlow. (applied 1 targeted edits)
constant/channel.go high The fork already occupies upstream's ID 59 with its own ChannelTypeAstraFlow (base URL https://api.modelverse.cn), so ChannelTypeSub2API is assigned the next free ID, 60, which stays below ChannelTypeDummy as the comment requires. Added the constant, a corresponding empty base-URL entry (commented //60, aligned like the empty 58 entry), and the ChannelTypeNames map entry with the same column alignment used upstream. AstraFlow is untouched — per conventions, fork features are preserved and upstream takes a new slot. (applied 3 targeted edits)
relay/channel/openai/relay_responses.go medium Applied the upstream intent onto the downstream file, which diverges due to the ported streaming-billing fix (adds sawCompleted and post-scan StreamStatus/incomplete-stream guards). Adapations: (1) kept sawCompleted = true in the merged response.completed/response.done case so the downstream EOF-without-completed guard still treats response.done as a completed stream; (2) left the downstream abnormal-end/incomplete-stream return paths untouched, since upstream has no equivalent and they only gate billing. The context image_generation_call c.Set calls were removed exactly as upstream did (image generation billing is now settled via relaycommon.ImageGenerationCallCounter committed into RelayInfo). No import changes needed: fmt is still used by fmt.Errorf in the stream handler guard, logger still used in the stream handler, common still used by Unmarshal/UnmarshalJsonStr. New symbols (info.CountBillableToolCall, relaycommon.ImageGenerationCallCounter, relaycommon.IsNonBillableResponsesStatus, and Output[].Status/Type/Name fields) are provided by sibling files in this commit. The upstream diff was truncated in the response.failed/... case; I inferred its body as Reset()+Commit()+mark committed, mirroring the non-billable-status branch so partially observed image outputs on failed/incomplete/cancelled responses are not billed. (applied 5 targeted edits)
relay/relay_adaptor.go high The patch failed only due to surrounding drift: downstream has extra astraflow/taskastraflow imports and an APITypeAstraFlow case that shifted the line numbers. The two anchor blocks exist verbatim and uniquely downstream. Added the sub2api import before submodel (alphabetical, matching upstream placement relative to siliconflow/submodel) and added the APITypeSub2API case after APITypeAdvancedCustom, exactly matching upstream intent. This file depends on relay/channel/sub2api.Adaptor and constant.APITypeSub2API from other files of the same upstream commit, which are expected to land separately; cuberouter conventions do not rename either symbol. (applied 2 targeted edits)
web/src/features/channels/constants.ts medium Upstream adds channel type 59 = 'Sub2API' (in CHANNEL_TYPES, display order after 57, MODEL_FETCHABLE_TYPES, TYPE_TO_KEY_PROMPT). Downstream already uses ID 59 for the fork-specific 'AstraFlow (Seedance)' channel, so a verbatim apply would clobber the fork feature. Per fork conventions (resolve in favour of cuberouter's features), I kept AstraFlow at 59 and mapped Sub2API to the next free sequential ID, 60. Placement mirrors upstream intent: display-order slot right after 57, model-fetchable membership, and the generic API-key prompt. ASSUMPTION: the backend portion of this sync (constant.ChannelTypeSub2API in constant/channel.go) must also be resolved to 60 so frontend and backend IDs agree — if the backend keeps upstream's 59, these frontend entries must be changed back and AstraFlow renumbered instead. Also note downstream's type-50 prompt uses 'CubeRouter' (rebrand) and type 59 sits at the end of the display order — both preserved untouched. (applied 4 targeted edits)
controller/system_task_handlers.go high upstream diff applied directly via git apply
model/task.go high upstream diff applied directly via git apply
model/task_cas_test.go high upstream diff applied directly via git apply
service/task_billing.go high upstream diff applied directly via git apply
service/task_polling.go high upstream diff applied directly via git apply
service/task_polling_test.go high upstream diff applied directly via git apply
common/api_type.go high upstream diff applied directly via git apply
controller/channel-test.go high upstream diff applied directly via git apply
controller/channel.go high upstream diff applied directly via git apply
controller/channel_test_internal_test.go high upstream diff applied directly via git apply
controller/channel_upstream_update_test.go high upstream diff applied directly via git apply
relay/alpha_search_handler.go high upstream diff applied directly via git apply
relay/channel/newapi/adaptor.go high upstream diff applied directly via git apply
relay/channel/newapi/constants.go high upstream diff applied directly via git apply
relay/channel/sub2api/adaptor.go high upstream diff applied directly via git apply
relay/channel/sub2api/adaptor_test.go high upstream diff applied directly via git apply
relay/common/relay_info.go high upstream diff applied directly via git apply
relay/relay_adaptor.go high upstream diff applied directly via git apply
relay/responses_handler.go high upstream diff applied directly via git apply
web/src/features/channels/lib/__tests__/new-api-channel.test.ts high upstream diff applied directly via git apply
web/src/features/channels/lib/channel-form.ts high upstream diff applied directly via git apply
web/src/features/channels/lib/channel-type-config.ts high upstream diff applied directly via git apply
web/src/features/channels/lib/channel-utils.ts high upstream diff applied directly via git apply
common/endpoint_type.go high The apply failed because downstream has diverged context elsewhere in the switch (e.g. AstraFlow/DoubaoVideo fallthrough cases and a Codex case), but the Sub2API case itself is essentially identical upstream/downstream. Applied the upstream intent directly: the New API channel type shares Sub2API's endpoint list, and EndpointTypeOpenAIResponseCompact is added to that list. EndpointTypeOpenAIResponseCompact already exists downstream (used by the ChannelTypeCodex case), so no new constant is needed. ChannelTypeNewAPI is assumed to be provided by the companion constant-file changes from the same upstream commit; this file does not define it. (applied 1 targeted edits)
constant/api_type.go high The patch failed because the downstream fork inserted APITypeAstraFlow between APITypeCodex and APITypeAdvancedCustom (context drift), but the tail of the const block — APITypeSub2API immediately followed by APITypeDummy — is identical to upstream. Added APITypeNewAPI after APITypeSub2API and before APITypeDummy, exactly per the upstream intent and respecting the comment that no new entries go after APITypeDummy. (applied 1 targeted edits)
constant/channel.go high Downstream has intentionally diverged channel numbering: it inserted fork-specific ChannelTypeAstraFlow = 59, pushing ChannelTypeSub2API to 60 (upstream has Sub2API = 59). Since these numeric IDs are persisted in channel DB rows, downstream numbering must be preserved, so the upstream addition ChannelTypeNewAPI is placed at the next free ID 61 instead of upstream's 60 (adding another type at 60 would collide with downstream Sub2API). Mirrored the upstream intent: constant in the const block before ChannelTypeDummy, an empty base URL entry (//61) to keep ChannelBaseURLs index-aligned, and the 'New API' display name in ChannelTypeNames. Note for follow-up: any other upstream files from this commit that reference ChannelTypeNewAPI numerically (60) or rely on its position must map to 61 downstream; the newapi adaptor/APIType/web UI changes live in other files and are handled separately. (applied 3 targeted edits)
web/src/features/channels/constants.ts medium ID collision: upstream assigns the new 'New API' channel type = 60, but this fork already remapped Sub2API to 60 (its own comment says upstream 59 'is taken by AstraFlow in this fork; remapped to 60'). Following the fork's established remap-to-next-free-ID convention, New API is assigned 61, with matching comments. All upstream additions are mirrored: CHANNEL_TYPE_NEW_API constant, CHANNEL_TYPES entry (placed after Sub2API, mirroring upstream's 'after 59' placement), display-order insertion immediately after 48 (upstream places it right before 58 'Advanced Custom'; lines rewrapped to <=80 cols like upstream), MODEL_FETCHABLE_TYPES, and TYPE_TO_KEY_PROMPT. Assumption: the backend ChannelTypeNewAPI constant (a separate file/conflict not in scope here) is likewise remapped to 61 so the frontend ID matches the backend, per this file's own 'must match backend' convention — a human should verify the backend constant when reviewing the sync. (applied 5 targeted edits)
common/api_type.go high upstream diff applied directly via git apply
controller/channel_test_internal_test.go high upstream diff applied directly via git apply
Dockerfile high upstream diff applied directly via git apply
common/str.go high upstream diff applied directly via git apply
constant/endpoint_type.go high upstream diff applied directly via git apply
constant/finish_reason.go high upstream diff applied directly via git apply
constant/waffo_pay_method.go high upstream diff applied directly via git apply
controller/channel-billing.go high upstream diff applied directly via git apply
controller/channel-test.go high upstream diff applied directly via git apply
controller/channel.go high upstream diff applied directly via git apply
controller/channel_test_internal_test.go high upstream diff applied directly via git apply
controller/channel_upstream_update.go high upstream diff applied directly via git apply
controller/channel_upstream_update_test.go high upstream diff applied directly via git apply
controller/model.go high upstream diff applied directly via git apply
controller/model_list_test.go high upstream diff applied directly via git apply
controller/option.go high upstream diff applied directly via git apply
controller/option_claude_test.go high upstream diff applied directly via git apply
controller/option_gemini_test.go high upstream diff applied directly via git apply
controller/ratio_sync.go high upstream diff applied directly via git apply
controller/relay.go high upstream diff applied directly via git apply
controller/task.go high upstream diff applied directly via git apply
controller/user.go high upstream diff applied directly via git apply
dto/alpha_search_request.go high upstream diff applied directly via git apply
dto/audio.go high upstream diff applied directly via git apply
dto/billing_usage.go high upstream diff applied directly via git apply
dto/billing_usage_test.go high upstream diff applied directly via git apply
dto/channel_settings.go high upstream diff applied directly via git apply
dto/channel_settings_test.go high upstream diff applied directly via git apply
dto/claude.go high upstream diff applied directly via git apply
dto/embedding.go high upstream diff applied directly via git apply
dto/error.go high upstream diff applied directly via git apply
dto/gemini.go high upstream diff applied directly via git apply
dto/gemini_generation_config_test.go high upstream diff applied directly via git apply
dto/gemini_isstream_test.go high upstream diff applied directly via git apply
dto/gemini_response_test.go high upstream diff applied directly via git apply
dto/notify.go high upstream diff applied directly via git apply
dto/openai_compaction.go high upstream diff applied directly via git apply
dto/openai_image.go high upstream diff applied directly via git apply
dto/openai_request.go high upstream diff applied directly via git apply
dto/openai_request_zero_value_test.go high upstream diff applied directly via git apply
dto/openai_response.go high upstream diff applied directly via git apply
dto/openai_responses_compaction_request.go high upstream diff applied directly via git apply
dto/openai_video.go high upstream diff applied directly via git apply
dto/playground.go high upstream diff applied directly via git apply
dto/pricing.go high upstream diff applied directly via git apply
dto/ratio_sync.go high upstream diff applied directly via git apply
dto/realtime.go high upstream diff applied directly via git apply
dto/request_common.go high upstream diff applied directly via git apply
dto/rerank.go high upstream diff applied directly via git apply
dto/sensitive.go high upstream diff applied directly via git apply
dto/user_settings.go high upstream diff applied directly via git apply
dto/values.go high upstream diff applied directly via git apply
go.mod high upstream diff applied directly via git apply
go.sum high upstream diff applied directly via git apply
i18n/i18n.go high upstream diff applied directly via git apply
main.go high upstream diff applied directly via git apply
middleware/auth.go high upstream diff applied directly via git apply
middleware/distributor.go high upstream diff applied directly via git apply
middleware/i18n.go high upstream diff applied directly via git apply
middleware/performance.go high upstream diff applied directly via git apply
middleware/utils.go high upstream diff applied directly via git apply
model/ability.go high upstream diff applied directly via git apply
model/channel.go high upstream diff applied directly via git apply
model/channel_cache.go high upstream diff applied directly via git apply
model/channel_settings_test.go high upstream diff applied directly via git apply
model/log.go high upstream diff applied directly via git apply
model/pricing.go high upstream diff applied directly via git apply
model/pricing_endpoint_test.go high upstream diff applied directly via git apply
model/task.go high upstream diff applied directly via git apply
model/user_cache.go high upstream diff applied directly via git apply
model/user_update_test.go high upstream diff applied directly via git apply
pkg/billingexpr/compile.go high upstream diff applied directly via git apply
pkg/billingexpr/run.go high upstream diff applied directly via git apply
relay/alpha_search_handler.go high upstream diff applied directly via git apply
relay/audio_handler.go high upstream diff applied directly via git apply
relay/channel/adapter.go high upstream diff applied directly via git apply
relay/channel/advancedcustom/adaptor.go high upstream diff applied directly via git apply
relay/channel/advancedcustom/adaptor_test.go high upstream diff applied directly via git apply
relay/channel/ali/adaptor.go high upstream diff applied directly via git apply
relay/channel/ali/dto.go high upstream diff applied directly via git apply
relay/channel/ali/image.go high upstream diff applied directly via git apply
relay/channel/ali/image_wan.go high upstream diff applied directly via git apply
relay/channel/ali/rerank.go high upstream diff applied directly via git apply
relay/channel/ali/text.go high upstream diff applied directly via git apply
relay/channel/api_request.go high upstream diff applied directly via git apply
relay/channel/aws/adaptor.go high upstream diff applied directly via git apply
relay/channel/aws/dto.go high upstream diff applied directly via git apply
relay/channel/aws/relay-aws.go high upstream diff applied directly via git apply
relay/channel/baidu/adaptor.go high upstream diff applied directly via git apply
relay/channel/baidu/dto.go high upstream diff applied directly via git apply
relay/channel/baidu/relay-baidu.go high upstream diff applied directly via git apply
relay/channel/baidu_v2/adaptor.go high upstream diff applied directly via git apply
relay/channel/claude/adaptor.go high upstream diff applied directly via git apply
relay/channel/claude/message_delta_usage_patch_test.go high upstream diff applied directly via git apply
relay/channel/claude/relay-claude.go high upstream diff applied directly via git apply
relay/channel/claude/relay_claude_test.go high upstream diff applied directly via git apply
relay/channel/claude/tool_billing_test.go high upstream diff applied directly via git apply
relay/channel/cloudflare/adaptor.go high upstream diff applied directly via git apply
relay/channel/cloudflare/dto.go high upstream diff applied directly via git apply
relay/channel/cloudflare/relay_cloudflare.go high upstream diff applied directly via git apply
relay/channel/codex/adaptor.go high upstream diff applied directly via git apply
relay/channel/cohere/adaptor.go high upstream diff applied directly via git apply
relay/channel/cohere/dto.go high upstream diff applied directly via git apply
relay/channel/cohere/relay-cohere.go high upstream diff applied directly via git apply
relay/channel/coze/adaptor.go high upstream diff applied directly via git apply
relay/channel/coze/relay-coze.go high upstream diff applied directly via git apply
relay/channel/deepseek/adaptor.go high upstream diff applied directly via git apply
relay/channel/dify/adaptor.go high upstream diff applied directly via git apply
relay/channel/dify/dto.go high upstream diff applied directly via git apply
relay/channel/dify/relay-dify.go high upstream diff applied directly via git apply
relay/channel/gemini/adaptor.go high upstream diff applied directly via git apply
relay/channel/gemini/adaptor_responses_test.go high upstream diff applied directly via git apply
relay/channel/gemini/relay-gemini-native.go high upstream diff applied directly via git apply
relay/channel/gemini/relay-gemini.go high upstream diff applied directly via git apply
relay/channel/gemini/relay_gemini_usage_test.go high upstream diff applied directly via git apply
relay/channel/gemini/relay_responses.go high upstream diff applied directly via git apply
relay/channel/gemini/relay_responses_test.go high upstream diff applied directly via git apply
relay/channel/jimeng/adaptor.go high upstream diff applied directly via git apply
relay/channel/jimeng/image.go high upstream diff applied directly via git apply
relay/channel/jina/adaptor.go high upstream diff applied directly via git apply
relay/channel/minimax/adaptor.go high upstream diff applied directly via git apply
relay/channel/minimax/adaptor_test.go high upstream diff applied directly via git apply
relay/channel/minimax/image.go high upstream diff applied directly via git apply
relay/channel/minimax/relay-minimax.go high upstream diff applied directly via git apply
relay/channel/minimax/tts.go high upstream diff applied directly via git apply
relay/channel/mistral/adaptor.go high upstream diff applied directly via git apply
relay/channel/mistral/text.go high upstream diff applied directly via git apply
relay/channel/mokaai/adaptor.go high upstream diff applied directly via git apply
relay/channel/mokaai/relay-mokaai.go high upstream diff applied directly via git apply
relay/channel/moonshot/adaptor.go high upstream diff applied directly via git apply
relay/channel/moonshot/adaptor_test.go high upstream diff applied directly via git apply
relay/channel/ollama/adaptor.go high upstream diff applied directly via git apply
relay/channel/ollama/relay-ollama.go high upstream diff applied directly via git apply
relay/channel/ollama/stream.go high upstream diff applied directly via git apply
relay/channel/ollama/stream_test.go high upstream diff applied directly via git apply
relay/channel/openai/adaptor.go high upstream diff applied directly via git apply
relay/channel/openai/audio.go high upstream diff applied directly via git apply
relay/channel/openai/chat_via_responses.go high upstream diff applied directly via git apply
relay/channel/openai/helper.go high upstream diff applied directly via git apply
relay/channel/openai/image_edit_test.go high upstream diff applied directly via git apply
relay/channel/openai/relay-openai.go high upstream diff applied directly via git apply
relay/channel/openai/relay_image.go high upstream diff applied directly via git apply
relay/channel/openai/relay_realtime.go high upstream diff applied directly via git apply
relay/channel/openai/relay_responses.go high upstream diff applied directly via git apply
relay/channel/openai/relay_responses_billing_test.go high upstream diff applied directly via git apply
relay/channel/openai/relay_responses_compact.go high upstream diff applied directly via git apply
relay/channel/openai/responses_via_chat.go high upstream diff applied directly via git apply
relay/channel/openai/usage.go high upstream diff applied directly via git apply
relay/channel/palm/adaptor.go high upstream diff applied directly via git apply
relay/channel/palm/dto.go high upstream diff applied directly via git apply
relay/channel/palm/relay-palm.go high upstream diff applied directly via git apply
relay/channel/perplexity/adaptor.go high upstream diff applied directly via git apply
relay/channel/perplexity/relay-perplexity.go high upstream diff applied directly via git apply
relay/channel/replicate/adaptor.go high upstream diff applied directly via git apply
relay/channel/siliconflow/adaptor.go high upstream diff applied directly via git apply
relay/channel/siliconflow/dto.go high upstream diff applied directly via git apply
relay/channel/siliconflow/relay-siliconflow.go high upstream diff applied directly via git apply
relay/channel/submodel/adaptor.go high upstream diff applied directly via git apply
relay/channel/task/ali/adaptor.go high upstream diff applied directly via git apply
relay/channel/task/gemini/adaptor.go high upstream diff applied directly via git apply
relay/channel/task/hailuo/adaptor.go high upstream diff applied directly via git apply
relay/channel/task/jimeng/adaptor.go high upstream diff applied directly via git apply
relay/channel/task/kling/adaptor.go high upstream diff applied directly via git apply
relay/channel/task/vertex/adaptor.go high upstream diff applied directly via git apply
relay/channel/task/vidu/adaptor.go high upstream diff applied directly via git apply
relay/channel/tencent/adaptor.go high upstream diff applied directly via git apply
relay/channel/tencent/relay-tencent.go high upstream diff applied directly via git apply
relay/channel/vertex/adaptor.go high upstream diff applied directly via git apply
relay/channel/vertex/dto.go high upstream diff applied directly via git apply
relay/channel/volcengine/adaptor.go high upstream diff applied directly via git apply
relay/channel/volcengine/tts.go high upstream diff applied directly via git apply
relay/channel/xai/adaptor.go high upstream diff applied directly via git apply
relay/channel/xai/dto.go high upstream diff applied directly via git apply
relay/channel/xai/text.go high upstream diff applied directly via git apply
relay/channel/xunfei/adaptor.go high upstream diff applied directly via git apply
relay/channel/xunfei/dto.go high upstream diff applied directly via git apply
relay/channel/xunfei/relay-xunfei.go high upstream diff applied directly via git apply
relay/channel/zhipu/adaptor.go high upstream diff applied directly via git apply
relay/channel/zhipu/dto.go high upstream diff applied directly via git apply
relay/channel/zhipu/relay-zhipu.go high upstream diff applied directly via git apply
relay/channel/zhipu_4v/adaptor.go high upstream diff applied directly via git apply
relay/channel/zhipu_4v/dto.go high upstream diff applied directly via git apply
relay/channel/zhipu_4v/image.go high upstream diff applied directly via git apply
relay/channel/zhipu_4v/relay-zhipu_v4.go high upstream diff applied directly via git apply
relay/chat_completions_via_responses.go high upstream diff applied directly via git apply
relay/chat_completions_via_responses_test.go high upstream diff applied directly via git apply
relay/claude_handler.go high upstream diff applied directly via git apply
relay/common/override.go high upstream diff applied directly via git apply
relay/common/override_test.go high upstream diff applied directly via git apply
relay/common/relay_info.go high upstream diff applied directly via git apply
relay/common/relay_info_gemini_settings_test.go high upstream diff applied directly via git apply
relay/common/relay_info_test.go high upstream diff applied directly via git apply
relay/common/request_conversion.go high upstream diff applied directly via git apply
relay/common/stream_status.go high upstream diff applied directly via git apply
relay/common/tool_usage.go high upstream diff applied directly via git apply
relay/common/tool_usage_test.go high upstream diff applied directly via git apply
relay/common_handler/rerank.go high upstream diff applied directly via git apply
relay/compatible_handler.go high upstream diff applied directly via git apply
relay/embedding_handler.go high upstream diff applied directly via git apply
relay/gemini_handler.go high upstream diff applied directly via git apply
relay/helper/billing_expr_request.go high upstream diff applied directly via git apply
relay/helper/billing_expr_request_test.go high upstream diff applied directly via git apply
relay/helper/common.go high upstream diff applied directly via git apply
relay/helper/model_mapped.go high upstream diff applied directly via git apply
relay/helper/openai_image_request_test.go high upstream diff applied directly via git apply
relay/helper/price.go high upstream diff applied directly via git apply
relay/helper/price_test.go high upstream diff applied directly via git apply
relay/helper/valid_request.go high upstream diff applied directly via git apply
relay/image_handler.go high upstream diff applied directly via git apply
relay/param_override_error.go high upstream diff applied directly via git apply
relay/reasonmap/reasonmap.go high upstream diff applied directly via git apply
relay/rerank_handler.go high upstream diff applied directly via git apply
relay/responses_handler.go high upstream diff applied directly via git apply
relay/websocket.go high upstream diff applied directly via git apply
relaykit/dto/alpha_search_request.go high upstream diff applied directly via git apply
relaykit/dto/audio.go high upstream diff applied directly via git apply
relaykit/dto/billing_usage.go high upstream diff applied directly via git apply
relaykit/dto/billing_usage_test.go high upstream diff applied directly via git apply
relaykit/dto/channel_settings.go high upstream diff applied directly via git apply
relaykit/dto/channel_settings_test.go high upstream diff applied directly via git apply
relaykit/dto/claude.go high upstream diff applied directly via git apply
relaykit/dto/embedding.go high upstream diff applied directly via git apply
relaykit/dto/error.go high upstream diff applied directly via git apply
relaykit/dto/gemini.go high upstream diff applied directly via git apply
relaykit/dto/gemini_generation_config_test.go high upstream diff applied directly via git apply
relaykit/dto/gemini_isstream_test.go high upstream diff applied directly via git apply
relaykit/dto/gemini_response_test.go high upstream diff applied directly via git apply
relaykit/dto/notify.go high upstream diff applied directly via git apply
relaykit/dto/openai_compaction.go high upstream diff applied directly via git apply
relaykit/dto/openai_image.go high upstream diff applied directly via git apply
relaykit/dto/openai_request.go high upstream diff applied directly via git apply
relaykit/dto/openai_request_zero_value_test.go high upstream diff applied directly via git apply
relaykit/dto/openai_response.go high upstream diff applied directly via git apply
relaykit/dto/openai_responses_compaction_request.go high upstream diff applied directly via git apply
relaykit/dto/openai_video.go high upstream diff applied directly via git apply
relaykit/dto/playground.go high upstream diff applied directly via git apply
relaykit/dto/pricing.go high upstream diff applied directly via git apply
relaykit/dto/ratio_sync.go high upstream diff applied directly via git apply
relaykit/dto/realtime.go high upstream diff applied directly via git apply
relaykit/dto/request_common.go high upstream diff applied directly via git apply
relaykit/dto/rerank.go high upstream diff applied directly via git apply
relaykit/dto/sensitive.go high upstream diff applied directly via git apply
relaykit/dto/user_settings.go high upstream diff applied directly via git apply
relaykit/dto/values.go high upstream diff applied directly via git apply
relaykit/go.mod high upstream diff applied directly via git apply
relaykit/go.sum high upstream diff applied directly via git apply
relaykit/reasonmap/reasonmap.go high upstream diff applied directly via git apply
relaykit/relayconvert/boundary_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/claude_default_max_tokens_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/convmeta/format.go high upstream diff applied directly via git apply
relaykit/relayconvert/convmeta/meta.go high upstream diff applied directly via git apply
relaykit/relayconvert/convmeta/meta_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/convmeta/options.go high upstream diff applied directly via git apply
relaykit/relayconvert/golden_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/claude_messages/to_oai_chat_req.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/claude_messages/to_oai_chat_resp.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_req.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/jsonutil/stringify.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/media/media.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_claude_messages_req.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_req.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_oai_responses_req.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_oai_responses_req_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_responses/req_helpers.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_responses/to_gemini_chat_req.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_responses/to_gemini_chat_req_preprocess.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_responses/to_oai_chat_req_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/shared/claude/cache.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/shared/claude/errors.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/shared/claude/tool_choice.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/shared/gemini/request.go high upstream diff applied directly via git apply
relaykit/relayconvert/internal/shared/gemini/schema.go high upstream diff applied directly via git apply
relaykit/relayconvert/kitutil/json.go high upstream diff applied directly via git apply
relaykit/relayconvert/kitutil/log.go high upstream diff applied directly via git apply
relaykit/relayconvert/kitutil/log_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/kitutil/mask.go high upstream diff applied directly via git apply
relaykit/relayconvert/kitutil/value.go high upstream diff applied directly via git apply
relaykit/relayconvert/media.go high upstream diff applied directly via git apply
relaykit/relayconvert/reasoning/suffix.go high upstream diff applied directly via git apply
relaykit/relayconvert/request_compat.go high upstream diff applied directly via git apply
relaykit/relayconvert/request_registry.go high upstream diff applied directly via git apply
relaykit/relayconvert/request_registry_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/response_compat.go high upstream diff applied directly via git apply
relaykit/relayconvert/response_registry.go high upstream diff applied directly via git apply
relaykit/relayconvert/response_registry_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/safety_settings_test.go high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/claude_to_gemini.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/claude_to_openai.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/claude_to_openai_responses.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/gemini_to_claude.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/gemini_to_openai.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/gemini_to_openai_responses.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/openai_responses_to_claude.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/openai_responses_to_gemini.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/openai_responses_to_openai.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/openai_to_claude.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/openai_to_gemini.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/request/openai_to_openai_responses.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/claude_to_gemini.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/claude_to_openai.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/claude_to_openai_responses.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/gemini_to_claude.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/gemini_to_openai.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/gemini_to_openai_responses.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/openai_responses_to_claude.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/openai_responses_to_gemini.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/openai_responses_to_openai.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/openai_to_claude.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/openai_to_gemini.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/response/openai_to_openai_responses.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/claude_to_gemini.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/claude_to_openai.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/claude_to_openai_responses.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/gemini_to_claude.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/gemini_to_openai.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/gemini_to_openai_responses.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/openai_responses_to_claude.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/openai_responses_to_gemini.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/openai_responses_to_openai.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/openai_to_claude.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/openai_to_gemini.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/testdata/golden/stream/openai_to_openai_responses.golden.json high upstream diff applied directly via git apply
relaykit/relayconvert/text_converter_registry.go high upstream diff applied directly via git apply
relaykit/relayconvert/text_converter_registry_test.go high upstream diff applied directly via git apply
relaykit/types/channel_error.go high upstream diff applied directly via git apply
relaykit/types/endpoint_type.go high upstream diff applied directly via git apply
relaykit/types/error.go high upstream diff applied directly via git apply
relaykit/types/file_data.go high upstream diff applied directly via git apply
relaykit/types/file_source.go high upstream diff applied directly via git apply
relaykit/types/price_data.go high upstream diff applied directly via git apply
relaykit/types/relay_format.go high upstream diff applied directly via git apply
relaykit/types/request_meta.go high upstream diff applied directly via git apply
relaykit/types/rw_map.go high upstream diff applied directly via git apply
relaykit/types/set.go high upstream diff applied directly via git apply
router/relay-router.go high upstream diff applied directly via git apply
service/billing.go high upstream diff applied directly via git apply
service/billing_session.go high upstream diff applied directly via git apply
service/billing_usage.go high upstream diff applied directly via git apply
service/channel.go high upstream diff applied directly via git apply
service/channel_affinity.go high upstream diff applied directly via git apply
service/channel_affinity_usage_cache_test.go high upstream diff applied directly via git apply
service/convert.go high upstream diff applied directly via git apply
service/convert_test.go high upstream diff applied directly via git apply
service/error.go high upstream diff applied directly via git apply
service/error_test.go high upstream diff applied directly via git apply
service/file_decoder.go high upstream diff applied directly via git apply
service/file_service.go high upstream diff applied directly via git apply
service/log_info_generate.go high upstream diff applied directly via git apply
service/openai_chat_responses_compat.go high upstream diff applied directly via git apply
service/openai_chat_responses_mode.go high upstream diff applied directly via git apply
service/quota.go high upstream diff applied directly via git apply
service/quota_saturation_test.go high upstream diff applied directly via git apply
service/relayconvert/internal/claude_messages/to_oai_chat_req.go high upstream diff applied directly via git apply
service/relayconvert/internal/claude_messages/to_oai_chat_resp.go high upstream diff applied directly via git apply
service/relayconvert/internal/gemini_chat/to_oai_chat_req.go high upstream diff applied directly via git apply
service/relayconvert/internal/gemini_chat/to_oai_chat_resp.go high upstream diff applied directly via git apply
service/relayconvert/internal/jsonutil/stringify.go high upstream diff applied directly via git apply
service/relayconvert/internal/matcher/regex.go high upstream diff applied directly via git apply
service/relayconvert/internal/media/media.go high upstream diff applied directly via git apply
service/relayconvert/internal/meta/relay_info.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_claude_messages_req.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_claude_messages_resp.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_gemini_chat_req.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_gemini_chat_resp.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_gemini_chat_resp_test.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_oai_responses_policy.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_oai_responses_req.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_oai_responses_req_test.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_oai_responses_resp.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_oai_responses_resp_test.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_responses/req_helpers.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_responses/to_claude_messages_req.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_responses/to_gemini_chat_req.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_responses/to_gemini_chat_req_preprocess.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_responses/to_oai_chat_req.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_responses/to_oai_chat_req_test.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_responses/to_oai_chat_resp.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go high upstream diff applied directly via git apply
service/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go high upstream diff applied directly via git apply
service/relayconvert/internal/shared/claude/cache.go high upstream diff applied directly via git apply
service/relayconvert/internal/shared/claude/tool_choice.go high upstream diff applied directly via git apply
service/relayconvert/internal/shared/gemini/request.go high upstream diff applied directly via git apply
service/relayconvert/internal/shared/gemini/schema.go high upstream diff applied directly via git apply
service/relayconvert/media.go high upstream diff applied directly via git apply
service/relayconvert/request_compat.go high upstream diff applied directly via git apply
service/relayconvert/request_registry.go high upstream diff applied directly via git apply
service/relayconvert/request_registry_test.go high upstream diff applied directly via git apply
service/relayconvert/response_compat.go high upstream diff applied directly via git apply
service/relayconvert/response_registry.go high upstream diff applied directly via git apply
service/relayconvert/response_registry_test.go high upstream diff applied directly via git apply
service/relayconvert/text_converter_registry.go high upstream diff applied directly via git apply
service/relayconvert/text_converter_registry_test.go high upstream diff applied directly via git apply
service/request_converter.go high upstream diff applied directly via git apply
service/sensitive.go high upstream diff applied directly via git apply
service/task_billing.go high upstream diff applied directly via git apply
service/task_billing_test.go high upstream diff applied directly via git apply
service/task_polling_test.go high upstream diff applied directly via git apply
service/text_quota.go high upstream diff applied directly via git apply
service/text_quota_test.go high upstream diff applied directly via git apply
service/tiered_settle.go high upstream diff applied directly via git apply
service/tiered_settle_test.go high upstream diff applied directly via git apply
service/token_counter.go high upstream diff applied directly via git apply
service/usage_helpr.go high upstream diff applied directly via git apply
service/user_notify.go high upstream diff applied directly via git apply
service/violation_fee.go high ups

⚠️ PR body truncated to fit GitHub's 65,536 character limit.

…tor's line-number layer that was overlaying and hiding highlighted editor content, accepting the prior horizontal-scroll gutter overlap as a known cosmetic tradeoff

Upstream-commit: ae17f27
…-image' and 'gemini-3.1-flash-image' in the channel model list and mark them as image-generation models in default Gemini settings

Upstream-commit: 8b41def
… so single-segment TokenHub API keys are routed through the OpenAI-compatible adaptor (with the TokenHub base URL) while legacy three-segment ak/sk keys continue using the native TC3 adaptor.

Upstream-commit: 08f88d2
…d can be fully cleared (empty string no longer reset to "0" by the prop-sync effect), and enforce the global minimum topup per payment method via Math.max with getMinTopupAmount.

Upstream-commit: ab65d25
…to avoid triggering filtering/fetching on every keystroke (performance improvement)

Upstream-commit: 3e1e728
…rovider surcharge settlement in billing, a new Sub2API upstream channel type, a /v1/alpha/search relay endpoint, and surcharge breakdown display in the usage-log UI.

Upstream-commit: 2d23cdf
…ion sweep and its CAS tests, advances the refund legacy cutoff to 2026-02-22, and gates the async-task poller on unfinished sync tasks instead of the old polling-work check.

Upstream-commit: bc14c18
…wn relay adaptor, API/channel type constants, an OpenAI ResponseCompact endpoint type, and corresponding web UI configuration, refactoring shared logic out of the Sub2API adaptor.

Upstream-commit: 398cdaf
…ompact by adding APITypeAdvancedCustom to the IsResponsesCompactAPIType allowlist

Upstream-commit: f51dd4d
…layconvert, reasonmap) into a standalone, dependency-free 'relaykit' Go submodule, decoupling converters from gin/RelayInfo/settings via new convmeta.Meta/convmeta.Options and kitutil abstractions, with byte-level conversion behavior pinned by golden snapshot tests

Upstream-commit: 86ac0f7
@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (1)
  • sync(upstream)

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d08a0af6-f578-487e-a697-9f9e55138205

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The relaykit refactor (86ac0f7) moved dto/types symbols into the
relaykit submodule but left fork-specific code importing the old root
packages, breaking go build. Fix by re-pointing imports and aliasing:

- relaykit/types: add the 5 fork-specific ErrorCodeStream* constants
- task/astraflow, task/doubao and their tests: keep root dto via taskdto
  alias, use relaykit/dto for the moved relay DTO symbols (ArkVideo*,
  BoolValue/IntValue, NewOpenAIVideo, OpenAIVideoError)
- channel/astraflow, channel/newapi: point dto/types at relaykit
- controller/plugin_loop(+test), playground, plugin_regression_test,
  relay_openai_stream_test: use relaykit/dto and relaykit/types

go build ./... and go vet ./... now pass.
…nd config

The New API sync added the channel type to the frontend using upstream numbering (Sub2API=59, New API=60) in getChannelTypeIcon and CHANNEL_TYPE_CONFIGS, while constants.ts was correctly remapped to this fork numbering (AstraFlow=59, Sub2API=60, New API=61). As a result getChannelTypeIcon(61) fell through to the OpenAI default and the new-api-channel test failed.

Re-key Sub2API to 60 and New API to 61 in both the icon map and the type config (AstraFlow at 59 now falls back to the default config, as before the Sub2API/New API syncs), and update the test hardcoded Sub2API type from 59 to 60. This also fixes a latent UI bug where a real Sub2API channel (60) rendered with New API Base URL required hint.

bun test: 142 pass, 0 fail.
@mergify
mergify Bot merged commit e7ab3d1 into main Aug 24, 2026
6 checks passed
@mergify

mergify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants