Commit Graph
8160 Commits
Author SHA1 Message Date
Wesley Liddick 4328510f28 Merge pull request #8834 from Anankke/fix/grok-server-search-calls
fix(grok): keep xAI server-side search calls out of tool calls
2026-11-16 19:51:59 +08:00
Wesley Liddick 03c17491b3 Merge pull request #8661 from xy3xy3/feat/gemini-4-carbon-8658
feat(gemini): add Gemini 4 Carbon support
2026-11-16 19:51:51 +08:00
Wesley Liddick 8ed701382c Merge pull request #8833 from feeeei/perf/scheduler-snapshot-coalesce
perf(scheduler): 调度快照加载与数据库回源按 bucket 合并,减少大分组选号的整组复制
2026-11-16 18:47:48 +08:00
Wesley Liddick b140d5db8c Merge pull request #8816 from feeeei/perf/usage-billing-lane-zero-copy
perf: 同一用户的扣费按用户通道合并结算,请求体热点路径改用零拷贝读取
2026-11-16 18:47:40 +08:00
Wesley Liddick 04503e001e Merge pull request #8822 from feeeei/fix/gemini-native-sticky-session-hash
fix(gemini): 原生请求按稳定前缀生成粘性会话哈希,换号按上游实际用量计费
2026-11-16 18:47:32 +08:00
Wesley Liddick f242a6ea23 Merge pull request #8827 from feeeei/feat/gemini-vertex-multi-region
feat(gemini): Vertex 账号支持 us/eu 多区域端点,并按实际请求区域计价
2026-11-16 18:47:23 +08:00
Wesley Liddick 1cf7eb48c4 Merge pull request #8746 from feeeei/feat/gemini-4-hydrogen-pricing
feat(gemini): 补齐 Gemini 4 Hydrogen 计费
2026-11-16 18:47:15 +08:00
feeeei 32e70f3d40 feat(gemini): 补齐 Gemini 4 Hydrogen 计费
- 内置兜底价:gemini-4-hydrogen 为 $1.50 输入 / $7.50 输出 / $0.075 缓存读取
  (每百万 token),Priority 档为 1.8 倍;所有提示词长度同价
- 本地价格快照新增不带前缀的条目,含 Priority 档价格;只支持隐式缓存,
  不带存储价
2026-11-16 17:46:07 +08:00
shaw 7f3fe5bfde Merge main into perf/scheduler-snapshot-coalesce
Resolve conflicts with #8729, which caches the configured account pool
and checks time-based blocks (rate limit, overload, temp-unschedulable)
on every read:

- readSnapshotAccounts filters by IsSchedulable on both the
  GetSnapshotValues path (in-place compaction of the caller-owned slice)
  and the GetSnapshot path.
- The coalesced DB fallback still publishes the full configured pool.
  Each caller's private copy contains only accounts that are
  schedulable now.
- The fallback test stubs now implement ListModelAvailabilityCandidates,
  which #8729 switched the DB fallback to. Values-reader fixtures are
  marked schedulable. Adds tests for time-blocked filtering on both paths
  and for publishing the full pool.
2026-11-16 17:18:20 +08:00
shaw 2164ea4878 fix(billing): apply Vertex multi-region multiplier to default pricing only
Group and channel prices are admin-configured final prices. The 1.1x
multi-region factor now applies only when the token cost comes from
default model pricing (LiteLLM/fallback). This matches account stats
cost, which already applied the factor only at the model-file pricing
tier. Adds a regression test for configured vs default pricing.
2026-11-16 17:06:53 +08:00
shaw 2286c26d1b Merge remote-tracking branch 'gh/main' into fix-8827 2026-11-16 17:05:04 +08:00
shaw 8d57f461ca fix(gemini): keep forced cache billing on sticky-session failover
Keep the stable content session hash from this PR, but restore
ForceCacheBilling on the native v1beta entry. Dropping it changed
billing policy: a sticky session that failed over would be charged
full input price instead of cache-read price. That also hit
Antigravity accounts served by this handler, and made it inconsistent
with /v1/messages, which still forces cache billing. Billing on this
entry is now identical to main.
2026-11-16 17:04:52 +08:00
shaw e391d5fa38 Merge remote-tracking branch 'gh/main' into fix-8822 2026-11-16 17:03:37 +08:00
shaw b46b3cbabc test(handler): follow normalizeCodexUntrustedContext rename from #8769
#8769 renamed normalizeCodexPageContext to normalizeCodexUntrustedContext;
the call-output gate test still referenced the old name, so go vet -tags unit
failed once both changes were on main.
2026-11-16 17:03:29 +08:00
shaw fb07aaee23 Merge remote-tracking branch 'gh/main' into fix-8816 2026-11-16 17:02:10 +08:00
Anankke 70ad8365d9 fix(grok): keep xAI server-side search calls out of tool calls
On xAI upstreams a custom_tool_call whose call_id starts with xs_ or as_ is an xAI server-side search call, as the xAI tool usage docs define the prefixes.
The Messages and Chat Completions stream converters and the buffered accumulator no longer return such items as tool_use or tool calls, and stop_reason and finish_reason follow the remaining content.
Grok SearchCount counts each such item once; client custom tools and non-xAI upstreams are unchanged.
2026-11-16 00:40:53 -08:00
Wesley Liddick d70676756f Merge pull request #8840 from r266-tech/codex/channel-bedrock-compat-toggle
fix(channels): persist Bedrock compatibility as a boolean
2026-11-16 16:35:31 +08:00
Wesley Liddick 6b7cbc63be Merge pull request #8837 from Daiyangcheng/fix/seedance-scheduler-capability-projection
fix(scheduler): keep openai_capabilities in the scheduler metadata projection so Seedance accounts stay schedulable
2026-11-16 16:35:23 +08:00
Wesley Liddick 46b8792658 Merge pull request #8828 from little-greenbean/fix/gemini-parallel-tool-calls
fix(gemini): separate same-name parallel tool calls in streams
2026-11-16 16:35:14 +08:00
Wesley Liddick 4f3f916317 Merge pull request #8826 from william-drakemond/fix/compat-empty-stream-release-sticky
fix(antigravity): keepalive 后空流释放会话粘性账号 / Release the sticky account after a committed empty compat stream
2026-11-16 16:35:06 +08:00
Wesley Liddick f2eaed31c3 Merge pull request #8825 from r266-tech/codex/deepseek-explicit-pricing-overrides
fix(pricing): honor explicit DeepSeek token price overrides
2026-11-16 16:34:58 +08:00
Wesley Liddick 992ac63308 Merge pull request #8814 from qsy4/fix/openai-compat-stream-account-side-effects
fix(openai): apply account side effects to stream errors after output on compat paths
2026-11-16 16:34:50 +08:00
Wesley Liddick 101c2462dd Merge pull request #8813 from qsy4/fix/openai-sse-keepalive-before-first-output
fix(openai): forward upstream keepalive events before first output
2026-11-16 16:34:42 +08:00
Wesley Liddick 1ca302abf3 Merge pull request #8811 from Anankke/fix/messages-bridge-pre-content-failover
fix(openai): fail over Messages bridge errors before first content
2026-11-16 16:34:33 +08:00
Wesley Liddick 9750f8e039 Merge pull request #8808 from r266-tech/codex/first-output-spool-fallback
fix(openai): fall back to memory when first-output spool creation fails
2026-11-16 16:34:25 +08:00
Wesley Liddick 568db32f22 Merge pull request #8806 from feeeei/fix/usage-account-filter-actual-cost
fix(usage): 按账户筛选时模型与端点分布的实际扣费不再替换为账号成本
2026-11-16 16:34:16 +08:00
Wesley Liddick 119b04f945 Merge pull request #8800 from Anankke/fix/upstream-tcp-keepalive
fix(upstream): detect dead upstream connections in about 30s
2026-11-16 16:34:08 +08:00
Wesley Liddick 857ab95081 Merge pull request #8798 from Anankke/fix/pricing-startup-nonblocking
fix(pricing): check remote hash in background at startup
2026-11-16 16:34:00 +08:00
Wesley Liddick 470c02b399 Merge pull request #8796 from Anankke/fix/composite-route-public-model-response
fix(gateway): restore public model in composite-routed responses
2026-11-16 16:33:53 +08:00
Wesley Liddick 97957edd9e Merge pull request #8790 from Anankke/fix/websearch-account-mode-platforms
fix(websearch): honor account mode on every channel-toggle platform
2026-11-16 16:33:45 +08:00
Wesley Liddick 63751ea4de Merge pull request #8788 from Anankke/fix/count-tokens-passthrough-duplicate-headers
fix(gateway): stop duplicating headers on count_tokens passthrough
2026-11-16 16:33:38 +08:00
Wesley Liddick 1d585c94fd Merge pull request #8786 from Anankke/fix/chat-completions-metadata-user-id
fix(gateway): keep client metadata.user_id in Chat Completions to Anthropic
2026-11-16 16:33:30 +08:00
Wesley Liddick 4cebc098c3 Merge pull request #8779 from lishuangqiang/fix/anthropic-fable-model-limit-recovery
fix(ratelimit): lift Anthropic Fable model limit when the 7d_oi window recovers
2026-11-16 16:33:22 +08:00
Wesley Liddick c7df3b693f Merge pull request #8775 from Henglie/fix/web-no-store-settings-html
fix(web): stop caching settings-injected HTML
2026-11-16 16:33:15 +08:00
Wesley Liddick d31a87a4e2 Merge pull request #8769 from Undertone0809/codex/fix-codex-http-context
fix(openai): normalize additional Codex context on HTTP Responses
2026-11-16 16:33:07 +08:00
Wesley Liddick 56848016c5 Merge pull request #8763 from wc4440222/fix/kimi-monthly-quota
fix(kimi): 解析新套餐月度额度并清理缺席窗口快照
2026-11-16 16:32:59 +08:00
Wesley Liddick 4763569af2 Merge pull request #8761 from CooCoode/fix/8760-cc-responses-strict-default
fix(apicompat): default json_schema strict=false when converting CC to Responses
2026-11-16 16:32:51 +08:00
Wesley Liddick 202740441d Merge pull request #8759 from r266-tech/codex/gemini-schema-array-items
fix(antigravity): match schema items to the selected type
2026-11-16 16:32:44 +08:00
Wesley Liddick 3b5310c5d5 Merge pull request #8757 from Anandb71/arbor/sonnet-4-5-retirement
fix(claude): default account tests to claude-sonnet-4-6
2026-11-16 16:32:36 +08:00
Wesley Liddick e16a349ebb Merge pull request #8754 from r266-tech/codex/preserve-additional-tools-id
fix(codex): preserve and normalize additional_tools IDs
2026-11-16 16:32:27 +08:00
Wesley Liddick 8a585c9141 Merge pull request #8745 from wozhenbang2004/fix/anthropic-compat-observation-8714
fix(gateway): record Anthropic response models in compatibility routes
2026-11-16 16:32:19 +08:00
Wesley Liddick 6247d33eb6 Merge pull request #8743 from r266-tech/codex/fix-peak-rate-usage-test
test(billing): make peak-rate usage tests independent of wall clock
2026-11-16 16:32:11 +08:00
Wesley Liddick 6fd905f30d Merge pull request #8742 from r266-tech/codex/per-turn-control-beta
fix(gateway): preserve message output config with per-turn beta
2026-11-16 16:32:02 +08:00
Wesley Liddick e54a186548 Merge pull request #8741 from r266-tech/codex/native-anthropic-error-endpoint
fix(gateway): record native Anthropic endpoints on error paths
2026-11-16 16:31:55 +08:00
Wesley Liddick 0563176a5d Merge pull request #8740 from r266-tech/codex/gemini-usage-refetch
fix(accounts): keep Gemini usage bars visible during refetch
2026-11-16 16:31:47 +08:00
Wesley Liddick c782537eef Merge pull request #8739 from r266-tech/codex/anthropic-compat-effort-policy
fix(gateway): enforce effort policies on Anthropic compatibility routes
2026-11-16 16:31:39 +08:00
Wesley Liddick d7ae0544e8 Merge pull request #8738 from r266-tech/codex/reactive-cn-quota-snapshots
fix(cn-quota): refresh usage cells with account snapshots
2026-11-16 16:31:31 +08:00
Wesley Liddick 5146728d2f Merge pull request #8737 from r266-tech/codex/claude-rotated-token-retry
fix(claude): recover requests after concurrent token rotation
2026-11-16 16:31:22 +08:00
Wesley Liddick 472ea57525 Merge pull request #8736 from wozhenbang2004/fix/whitelist-wildcard-8710
fix(accounts): reject wildcard model whitelist entries
2026-11-16 16:31:14 +08:00
Wesley Liddick eb25511c71 Merge pull request #8735 from Hato626/perf/oauth-input-metadata-cleanup
perf(openai): avoid repeated full-body copies during OAuth metadata cleanup
2026-11-16 16:31:06 +08:00