CJACK
5f110e6910
refactor: remove legacy history split configuration and integrate current input file handling into the completion runtime pipeline.
2026-05-03 01:50:50 +08:00
CJACK
7c0bc9ec0f
feat: implement support for thinking blocks in Gemini API and enable thinking by default for supported models
2026-05-03 01:00:06 +08:00
CJACK
a901250de7
refactor: replace bufio.Scanner with bufio.Reader for SSE stream parsing and track emitted text to prevent redundant output blocks
2026-05-02 23:50:35 +08:00
CJACK
dc5bffdf89
refactor: centralize assistant turn semantics and stream accumulation into new assistantturn and completionruntime packages
2026-05-02 23:28:43 +08:00
CJACK
eccd8c957b
fix: prevent continuation replay overlap by trimming redundant text from thinking and response streams
2026-05-02 21:34:36 +08:00
王
d407ccb773
perf(streaming): optimize TTFT and reduce buffering latency
...
Core changes:
- stream.go: New accumulation buffer architecture with scanner goroutine
+ select loop, MinChars=16, MaxWait=10ms, first-flush-immediate
- dedupe.go: Add TrimContinuationOverlapFromBuilder to avoid string copies
- claude/stream_runtime_core.go: Integrate toolstream for incremental text
- claude/stream_runtime_finalize.go: toolstream flush support
- stream_emitter.js: Reduce DeltaCoalescer thresholds (160->16 chars, 80->20ms)
- empty_retry: Add thinking-aware empty output detection
- Fix reasoning_content leak and finish_reason=null in edge cases
- Fix tail content truncation when max_tokens exceeded
Tests: sync test expectations with upstream for thinking content
2026-05-02 20:28:30 +08:00
CJACK
e2756f800d
feat: introduce JSON UTF-8 validation middleware and prepend output integrity guard system prompt to messages
2026-05-02 02:22:34 +08:00
shern-point
d3018c281b
feat: use tokenizer-based counting in Claude token paths
...
Unify Claude count_tokens, legacy stream accounting, and legacy render usage with preserved prompt text so Claude stops falling back to lossy message formatting.
2026-04-30 00:46:04 +08:00
shern-point
6e21714e23
test: cover Claude schema-aware tool normalization
2026-04-29 01:59:42 +08:00
shern-point
48c4f0df9f
fix: preserve runtime tool schemas in Claude tool output
2026-04-29 01:59:24 +08:00
CJACK
90ce595325
chore: update project files
2026-04-27 02:09:11 +08:00
CJACK
40d5e3ebb5
测试DSML
2026-04-27 00:21:26 +08:00
MiY
e2dfe15f48
fix: fallback claude non-stream tool calls from thinking
2026-04-26 17:33:21 +08:00
CJACK
abc96a37d8
refactor backend API structure
2026-04-26 06:58:20 +08:00