Luis Pater
b05f575e9b
Merge pull request #2444 from 0oAstro/fix/codex-nonstream-finish-reason-tool-calls
...
fix(codex): set finish_reason to "tool_calls" in non-streaming response when tool calls are present
2026-04-02 10:01:25 +08:00
Luis Pater
c422d16beb
Merge pull request #2398 from 7RPH/fix/responses-sse-framing
...
fix: preserve SSE event boundaries for Responses streams
2026-04-02 00:46:51 +08:00
Luis Pater
66cd50f603
Merge pull request #2468 from router-for-me/ip
...
fix(openai): improve client IP retrieval in websocket handler
2026-04-02 00:03:35 +08:00
hkfires
caa529c282
fix(openai): improve client IP retrieval in websocket handler
2026-04-01 20:16:01 +08:00
hkfires
51a4379bf4
refactor(openai): remove websocket body log truncation limit
2026-04-01 18:11:43 +08:00
Luis Pater
acf98ed10e
fix(openai): add session reference counter and cache lifecycle management for websocket tools
2026-04-01 17:28:50 +08:00
Luis Pater
d1c07a091e
fix(openai): add websocket tool call repair with caching and tests to improve transcript consistency
2026-04-01 17:16:49 +08:00
Luis Pater
105a21548f
fix(codex): centralize session management with global store and add tests for executor session lifecycle
2026-04-01 13:17:10 +08:00
Luis Pater
1734aa1664
fix(codex): prioritize websocket-enabled credentials across priority tiers in scheduler logic
2026-04-01 12:51:12 +08:00
Luis Pater
ca11b236a7
refactor(runtime, openai): simplify header management and remove redundant websocket logging logic
2026-04-01 11:57:31 +08:00
Luis Pater
330e12d3c2
fix(codex): conditionally set Session_id header for Mac OS user agents and clean up redundant logic
2026-04-01 11:11:45 +08:00
Luis Pater
b468ca79c3
Merge branch 'dev' of github.com:router-for-me/CLIProxyAPI into dev
2026-04-01 03:09:03 +08:00
Luis Pater
d2c7e4e96a
refactor(runtime): move executor utilities to helps package and update references
2026-04-01 03:08:20 +08:00
Luis Pater
1c7003ff68
Merge pull request #2452 from Lucaszmv/fix-qwen-cli-v0.13.2
...
fix(qwen): update CLI simulation to v0.13.2 and adjust header casing
2026-04-01 02:44:27 +08:00
Lucaszmv
1b44364e78
fix(qwen): update CLI simulation to v0.13.2
2026-03-31 15:19:07 -03:00
0oAstro
ec77f4a4f5
fix(codex): set finish_reason to tool_calls in non-streaming response when tool calls are present
2026-03-31 14:12:15 +05:30
Luis Pater
51fd58d74f
fix(codex): use normalizeCodexInstructions to set default instructions
2026-03-31 12:16:57 +08:00
Luis Pater
faae9c2f7c
Merge pull request #2422 from MonsterQiu/fix/codex-compact-instructions
...
fix(codex): add default instructions for /responses/compact
2026-03-31 12:14:20 +08:00
Luis Pater
bc3a6e4646
Merge pull request #2434 from MonsterQiu/fix/codex-responses-null-instructions
...
fix(codex): normalize null instructions for /responses requests
2026-03-31 12:01:21 +08:00
Luis Pater
b09b03e35e
Merge pull request #2424 from possible055/fix/websocket-transcript-replacement
...
fix(openai): handle transcript replacement after websocket v2 compaction
2026-03-31 11:00:33 +08:00
Luis Pater
16231947e7
Merge pull request #2426 from xixiwenxuanhe/feature/antigravity-credits
...
feat(antigravity): add AI credits quota fallback
2026-03-31 10:51:40 +08:00
MonsterQiu
39b9a38fbc
fix(codex): normalize null instructions across responses paths
2026-03-31 10:32:39 +08:00
MonsterQiu
bd855abec9
fix(codex): normalize null instructions for responses requests
2026-03-31 10:29:02 +08:00
Luis Pater
7c3c2e9f64
Merge pull request #2417 from CharTyr/fix/amp-streaming-thinking-regression
...
fix(amp): 修复流式响应中 thinking block 被错误抑制导致的 TUI 空白回复
2026-03-31 10:12:13 +08:00
Luis Pater
c10f8ae2e2
Fixed : #2420
...
docs(readme): remove ProxyPal section from all README translations
2026-03-31 07:23:02 +08:00
xixiwenxuanhe
a0bf33eca6
fix(antigravity): preserve fallback and honor config gate
2026-03-31 00:14:05 +08:00
xixiwenxuanhe
88dd9c715d
feat(antigravity): add AI credits quota fallback
2026-03-30 23:58:12 +08:00
apparition
a3e21df814
fix(openai): avoid developer transcript resets
...
- Narrow websocket transcript replacement detection to assistant outputs and function calls
- Preserve existing merge behavior for follow-up developer messages without previous_response_id
- Add a regression test covering mid-session developer message updates
2026-03-30 23:33:16 +08:00
MonsterQiu
d3b94c9241
fix(codex): normalize null instructions for compact requests
2026-03-30 22:58:05 +08:00
apparition
c1d7599829
fix(openai): handle transcript replacement after websocket compaction
...
- Add shouldReplaceWebsocketTranscript() to detect historical model output in input
- Add normalizeResponseTranscriptReplacement() for full transcript reset handling
- Prevent duplicate stale turn-state when clients replace local history post-compaction
- Avoid orphaned function_call items from incremental append on compact transcripts
- Add unit tests for transcript replacement detection and state reset behavior
2026-03-30 22:44:58 +08:00
MonsterQiu
d11936f292
fix(codex): add default instructions for /responses/compact
2026-03-30 22:44:46 +08:00
Luis Pater
17363edf25
fix(auth): skip downtime for request-scoped 404 errors in model state management
2026-03-30 22:22:42 +08:00
CharTyr
279cbbbb8a
fix(amp): don't suppress thinking blocks in streaming mode
...
Reverts the streaming thinking suppression introduced in b15453c .
rewriteStreamEvent should only inject signatures and rewrite model
names — suppressing thinking blocks in streaming mode breaks SSE
index alignment and causes the Amp TUI to render empty responses
on the second message onward (especially with model-mapped
non-Claude providers like GPT-5.4).
Non-streaming responses still suppress thinking when tool_use is
present via rewriteModelInResponse.
2026-03-30 20:09:32 +08:00
Luis Pater
486cd4c343
Merge pull request #2409 from sususu98/fix/tool-use-pairing-break
...
fix(antigravity): reorder model parts to prevent tool_use↔tool_result pairing breakage
2026-03-30 16:59:46 +08:00
sususu98
25feceb783
fix(antigravity): reorder model parts to prevent tool_use↔tool_result pairing breakage
...
When a Claude assistant message contains [text, tool_use, text], the
Antigravity API internally splits the model message at functionCall
boundaries, creating an extra assistant turn between tool_use and the
following tool_result. Claude then rejects with:
tool_use ids were found without tool_result blocks immediately after
Fix: extend the existing 2-way part reordering (thinking-first) to a
3-way partition: thinking → regular → functionCall. This ensures
functionCall parts are always last, so Antigravity's split cannot
insert an extra assistant turn before the user's tool_result.
Fixes #989
2026-03-30 15:09:33 +08:00
Luis Pater
d26752250d
Merge pull request #2403 from CharTyr/clean-pr
...
fix(amp): 修复Amp CLI 集成 缺失/无效 signature 导致的 TUI 崩溃与上游 400 问题
2026-03-30 12:54:15 +08:00
CharTyr
b15453c369
fix(amp): address PR review - stream thinking suppression, SSE detection, test init
...
- Call suppressAmpThinking in rewriteStreamEvent for streaming path
- Handle nil return from suppressAmpThinking to skip suppressed events
- Narrow looksLikeSSEChunk to line-prefix detection (HasPrefix vs Contains)
- Initialize suppressedContentBlock map in test
2026-03-30 00:42:04 -04:00
CharTyr
04ba8c8bc3
feat(amp): sanitize signatures and handle stream suppression for Amp compatibility
2026-03-29 22:23:18 -04:00
Luis Pater
6570692291
Merge pull request #2400 from router-for-me/revert-2374-codex-cache-clean
...
Revert "fix(codex): restore prompt cache continuity for Codex requests"
2026-03-29 22:19:39 +08:00
trph
f73d55ddaa
fix: simplify responses SSE suffix handling
2026-03-29 22:19:25 +08:00
Luis Pater
13aa5b3375
Revert "fix(codex): restore prompt cache continuity for Codex requests"
2026-03-29 22:18:14 +08:00
trph
0fcc02fbea
fix: tighten responses SSE review follow-up
2026-03-29 22:10:28 +08:00
trph
c03883ccf0
fix: address responses SSE review feedback
2026-03-29 22:00:46 +08:00
trph
134a9eac9d
fix: preserve SSE event boundaries for Responses streams
2026-03-29 17:23:16 +08:00
Luis Pater
6d8de0ade4
feat(auth): implement weighted provider rotation for improved scheduling fairness
2026-03-29 13:49:01 +08:00
Luis Pater
1587ff5e74
Merge pull request #2389 from router-for-me/claude
...
fix(claude): add default max_tokens for models
2026-03-29 13:03:20 +08:00
hkfires
f033d3a6df
fix(claude): enhance ensureModelMaxTokens to use registered max_completion_tokens and fallback to default
2026-03-29 13:00:43 +08:00
hkfires
145e0e0b5d
fix(claude): add default max_tokens for models
2026-03-29 12:46:00 +08:00
Luis Pater
9b7d7021af
docs(readme): update LingtrueAPI link in all README translations
2026-03-29 12:30:24 +08:00
Luis Pater
e41c22ef44
docs(readme): add LingtrueAPI sponsorship details to all README translations
2026-03-29 12:23:37 +08:00