1803 Commits

Author SHA1 Message Date
Wesley Liddick
3680153d3f Merge branch 'main' into revert-982-feat/add-gpt-5.3-codex-spark 2026-02-14 00:41:16 +08:00
Wesley Liddick
7331945034 Revert "feat: add gpt-5.3-codex-spark model support" 2026-02-14 00:40:37 +08:00
github-actions[bot]
d0931968b5 chore: sync VERSION file with release v1.1.278 [skip ci] v1.1.278 2026-02-13 16:40:05 +00:00
Wesley Liddick
ef422c05b3 Merge pull request #982 from mylukin/feat/add-gpt-5.3-codex-spark
feat: add gpt-5.3-codex-spark model support
2026-02-14 00:39:51 +08:00
Wesley Liddick
a99dd48170 Merge pull request #971 from daheli/fix/increase-stream-watchdog-timeout [skip ci]
fix: increase stream watchdog timeout from 45s to 90s
2026-02-14 00:38:42 +08:00
Wesley Liddick
f695466ff8 Merge pull request #980 from mylukin/fix/patch-orphaned-tool-use [skip ci]
fix: patch orphaned tool_use blocks missing tool_result in Claude relay
2026-02-13 20:15:16 +08:00
Lukin
b08c34e40a feat: add gpt-5.3-codex-spark model support
Add gpt-5.3-codex-spark to model service and config.
Also add gpt-5.3-codex to model service (was only in config).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 16:26:53 +08:00
Anonymous Contributor
29d36bdf14 fix(gemini): handle split chunks correctly in stream usage capture 2026-02-13 15:11:10 +08:00
Lukin
abc66cc86f fix: patch orphaned tool_use blocks missing tool_result in Claude relay
Clients (e.g. opencode) may truncate conversation history in long sessions, leaving tool_use blocks without corresponding tool_result. The upstream Claude API strictly validates this pairing and returns 400. This adds _patchOrphanedToolUse() to claudeRelayService._processRequestBody(), which detects orphaned tool_use IDs and synthesizes error tool_result blocks — the same approach already used in anthropicGeminiBridgeService for the Antigravity path.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-02-13 11:42:48 +08:00
Lukin
feb8d3974d fix: patch orphaned tool_use blocks missing tool_result in Claude relay
Clients (e.g. opencode) may truncate conversation history in long sessions, leaving tool_use blocks without corresponding tool_result. The upstream Claude API strictly validates this pairing and returns 400. This adds _patchOrphanedToolUse() to claudeRelayService._processRequestBody(), which detects orphaned tool_use IDs and synthesizes error tool_result blocks — the same approach already used in anthropicGeminiBridgeService for the Antigravity path.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-02-13 11:41:39 +08:00
Jackwwg83
0dacab0d51 Merge remote-tracking branch 'upstream/main' into fix/enterprise-profile-account-type 2026-02-13 10:31:09 +08:00
Jackwwg83
a011595581 Fix enterprise profile mapping for Claude OAuth account type 2026-02-13 10:05:53 +08:00
github-actions[bot]
25cbcd313b chore: sync VERSION file with release v1.1.277 [skip ci] 2026-02-12 15:42:52 +00:00
Lukin
bf847b8aaf ci: remove Docker Hub, use only GHCR for releases
- Remove Docker Hub login step
- Remove docker.io image tags from build
- Update Telegram notification to show only GHCR images
2026-02-12 23:41:27 +08:00
github-actions[bot]
bdecbdedae chore: sync VERSION file with release v1.1.276 [skip ci] 2026-02-12 15:37:51 +00:00
Lukin
647420b10c Merge fix for Console API system role handling 2026-02-12 23:32:31 +08:00
Lukin
fe52a62cda fix(console): transform system role messages for Console API compatibility
Claude Console API (e.g., GLM accounts) does not accept messages with
role='system' in the messages array, returning 422 error:
"Input should be 'user' or 'assistant'"

This fix automatically transforms system messages by merging them into
the first user message's content, maintaining compatibility with clients
like opencode that send system role messages.

Changes:
- Add _transformSystemMessages() method to merge system content into user messages
- Apply transformation in both relayRequest() and relayStreamRequestWithUsageCapture()
- Only affects claude-console account type, no impact on official API

Fixes issues where opencode users get 422 errors when using Console API accounts.
2026-02-12 23:32:26 +08:00
Lukin
8a78f96564 ci: configure workflow for GHCR-only releases
- Remove Docker Hub dependency, use only GitHub Container Registry
- Update image naming logic for personal fork
- Simplify release notes to show GHCR images only
2026-02-12 23:31:02 +08:00
Your Name
859db7e99a fix: increase stream watchdog timeout from 45s to 90s
Google upstream (Antigravity) thinking models can take >45s during
the thinking phase before producing any output, especially under
heavy load. The 45s watchdog was incorrectly treating these as zombie
connections and terminating the stream, causing clients to receive
overloaded_error and retry repeatedly.

Increased STREAM_ACTIVITY_TIMEOUT_MS from 45000ms to 90000ms to
accommodate longer thinking phases.
2026-02-11 21:50:35 +08:00
bensonz
bbacdeb488 Merge remote-tracking branch 'upstream/main' 2026-02-10 22:14:17 +08:00
shiiwuz
77c4ed8b70 Sticky session: fallback to prompt_cache_key 2026-02-10 20:04:32 +08:00
github-actions[bot]
02e82cd245 chore: sync VERSION file with release v1.1.274 [skip ci] v1.1.274 2026-02-10 11:15:57 +00:00
Wesley Liddick
5fd834857e Merge pull request #966 from TyrantLucifer/fix-cluade-opus-limit
fix: update the claude model limit logic
2026-02-10 19:15:41 +08:00
github-actions[bot]
0efb634988 chore: sync VERSION file with release v1.1.273 [skip ci] v1.1.273 2026-02-10 11:12:22 +00:00
shaw
0cdfd65142 Merge branch 'main' into feat/oai_optimize 2026-02-10 19:09:59 +08:00
bensonz
c6d30c8cd6 Revert "feat: support 1M context window via anthropic_beta header for Bedrock"
This reverts commit 8967e866ed.
2026-02-10 15:26:34 +08:00
bensonz
8967e866ed feat: support 1M context window via anthropic_beta header for Bedrock
When Claude Code sends a model with [1m] suffix (e.g. claude-opus-4-6[1m]),
the relay now adds 'context-1m-2025-08-07' to the anthropic_beta array in
the Bedrock request body. This enables the 1M context window preview on
Bedrock for supported models (Opus 4.6, Sonnet 4.5, Sonnet 4).

Per Anthropic docs: the 1M context requires the beta header on all
platforms including Amazon Bedrock.
2026-02-10 14:25:16 +08:00
tyrantlucifer
f444af49bf fix: update the limit logic, and if the daily limit is not reached after reaching the opus weekly limit, other claude models can be used 2026-02-10 14:17:36 +08:00
bensonz
7aa80156fc fix: use global inference profile for claude-opus-4-6 mapping
Use global.anthropic.claude-opus-4-6-v1 (cross-region inference profile)
instead of us.anthropic prefix for better availability.
2026-02-10 14:14:38 +08:00
bensonz
6acdd0ba5f fix: add claude-opus-4-6 mapping and strip [1m] suffix for Bedrock
- Add model mapping: claude-opus-4-6 → us.anthropic.claude-opus-4-6-v1
- Strip [1m] suffix before model lookup (Claude Code sends e.g.
  claude-opus-4-6[1m] for 1M context variant)
- Bedrock supports 1M context natively for Opus 4.6, so the same
  model ID works — the [1m] suffix just needs to be removed
2026-02-10 14:12:41 +08:00
bensonz
bf6b19370b fix: strip unsupported cache_control fields for Bedrock compatibility
Claude Code v2.1.38+ sends cache_control with a 'scope' field
(e.g. {type: 'ephemeral', scope: 'global'}) on system prompt blocks.
AWS Bedrock only accepts {type: 'ephemeral'} and rejects the extra
'scope' field with a ValidationException.

Added _sanitizeCacheControl() that recursively strips unsupported
fields from cache_control objects in system, messages, and tools
before forwarding to Bedrock.
2026-02-10 12:26:27 +08:00
github-actions[bot]
00a954c7e9 chore: sync VERSION file with release v1.1.272 [skip ci] v1.1.272 2026-02-10 03:22:22 +00:00
shaw
4ed0108a9c fix: 移除特定system以适配新版cc客户端缓存失效的bug 2026-02-10 11:22:02 +08:00
SunSeekerX
cc82e071dc 1 2026-02-09 22:14:34 +08:00
SunSeekerX
c21997b7f4 1 2026-02-09 22:06:15 +08:00
SunSeekerX
29f2c4aba1 1 2026-02-09 20:33:04 +08:00
SunSeekerX
a08d51ba57 1 2026-02-09 20:24:38 +08:00
SunSeekerX
4637ee03b1 Merge branch 'main' into feat/oai_optimize 2026-02-09 18:17:28 +08:00
SunSeekerX
a119cb1744 1 2026-02-09 18:13:45 +08:00
github-actions[bot]
aa7bc00552 chore: sync VERSION file with release v1.1.271 [skip ci] v1.1.271 2026-02-09 08:31:49 +00:00
shaw
b66d65d50f fix: 修复openai账号多分组保存问题 2026-02-09 16:31:31 +08:00
github-actions[bot]
61e772fd95 chore: sync VERSION file with release v1.1.270 [skip ci] v1.1.270 2026-02-07 11:29:06 +00:00
shaw
21fd4113c8 feat: 新增opus4.6支持 2026-02-07 19:28:42 +08:00
shaw
d2a2505f01 docs: update readme 2026-02-07 16:38:42 +08:00
sczheng
d40c891e4f Merge remote-tracking branch 'upstream/main' into feature/claude_price_count 2026-02-06 12:01:01 +08:00
sczheng
1d90500de9 mod: 修改1m上下文的硬编码费用计算 2026-02-06 11:58:54 +08:00
github-actions[bot]
7a957f0f6e chore: sync VERSION file with release v1.1.269 [skip ci] v1.1.269 2026-02-06 03:12:30 +00:00
Wesley Liddick
20db21f99d Merge pull request #947 from sczheng189/main
MOD: API-Key详情页限制的显示补充 + claude周费用补充注解以及修改
2026-02-06 11:12:12 +08:00
github-actions[bot]
18dbc29a26 chore: sync VERSION file with release v1.1.268 [skip ci] 2026-02-05 03:46:09 +00:00
sczheng
d224a7f4c1 fix: 修复速率限制的使用次数显示问题 2026-02-05 11:43:53 +08:00