CJACK.
5cf56e7628
fix: reset tool call state between separate tool blocks to ensure unique IDs across stream segments
2026-04-22 20:10:06 +00:00
CJACK.
c291d333c4
feat: extract and inject assistant reasoning content into history split prompts
2026-04-22 19:56:28 +00:00
CJACK
f313d0068f
feat: implement code fence awareness in tool sieve to prevent false-positive XML tool detection inside code blocks and refine prompt instructions.
2026-04-20 00:13:14 +08:00
CJACK
0f2b5fee23
refactor: enhance XML tool call parsing to support nested structures, CDATA, and repeated tags
2026-04-19 19:58:45 +08:00
CJACK
26d195f2a6
refactor: update tool call format to prefer XML-style parameters with CDATA support for robust content handling
2026-04-19 18:51:25 +08:00
CJACK
790a8ca980
refactor: implement robust think tag stripping and CDATA handling for SSE stream parsing
2026-04-19 18:35:56 +08:00
CJACK
c945f49fc4
refactor: remove JSON-based tool call parsing from sieve and delete associated compatibility tests
2026-04-19 13:39:47 +08:00
Shuaihao
ba76a2163b
Add default, expert, and vision DeepSeek model families
2026-04-08 14:37:22 +08:00
CJACK.
d9e65c9710
remove upstream token-usage plumbing and always estimate from content
2026-04-07 20:12:18 +08:00
CJACK.
a14e5b0847
temporarily ignore upstream token usage fields globally
2026-04-07 19:40:47 +08:00
CJACK
b79a13efd5
feat: support explicit prompt token tracking in SSE parsing and stream handlers
2026-04-07 01:39:27 +08:00
CJACK.
f6c09ebd63
fix: keep node error-branch token semantics and add grep fallback
2026-04-06 12:32:26 +08:00
CJACK.
a8c160b05d
fix: parse DeepSeek accumulated_token_usage robustly and stabilize lint
2026-04-06 11:14:48 +08:00
CJACK
49012a227c
feat: implement trimContinuationOverlap utility to remove redundant stream prefixes and add associated tests.
2026-04-06 02:23:28 +08:00
CJACK
b699077b43
fix: make FINISHED status check case-insensitive in chat stream parsing
2026-04-05 23:56:19 +08:00
CJACK
49430123d8
fix: ignore INCOMPLETE status messages in SSE stream parsing to prevent stream interruption
2026-04-05 23:38:47 +08:00
CJACK
298a6f27cc
refactor: extract SSE parsing and Vercel stream logic into dedicated implementation modules
2026-04-05 16:32:13 +08:00
CJACK
eff979d9ef
feat: enhance content filtering, token usage tracking, and stream error handling in chat-stream modules
2026-04-05 13:41:38 +08:00
CJACK
c9201174f6
feat: add compatibility setting to strip reference markers from model output and update stream handlers accordingly
2026-04-05 00:50:30 +08:00
CJACK.
fabdba48c3
Restrict Vercel Node stream path to OpenAI chat to avoid Gemini empty responses
2026-04-03 11:28:54 +08:00
CJACK.
a28e833f33
Promote raw stream replay into standalone simulator tool and add SSE field doc
2026-04-03 10:18:48 +08:00
CJACK.
bfca84c2c7
Align tool-call parsing across Go/JS and pass quality gates
2026-04-01 01:24:55 +08:00
CJACK.
1fe1240240
fix(js): prevent XML wrapper attribute tool_calls scan loop
2026-03-30 15:59:34 +08:00
CJACK.
c07736fbea
chore: set shared tool-sieve context tail window to 2048
2026-03-30 15:41:38 +08:00
CJACK.
775bf3b578
refactor(js): align tool-sieve segment start and tail window with go
2026-03-30 15:41:26 +08:00
CJACK.
6efba7b2e4
fix(js): avoid false tool-call capture on plain tool_calls prose
2026-03-30 12:51:33 +08:00
CJACK
a7c9dfd7c0
refactor: remove configurable toolcall policy and fix to feature matching with high-confidence early emit
2026-03-30 01:56:25 +08:00
CJACK
30a53b6c43
refactor: remove legacy TOOL_CALL_HISTORY/TOOL_RESULT_HISTORY markers and consolidate tool call formatting into a new prompt package
2026-03-30 00:20:38 +08:00
CJACK
c3c644ff8c
111
2026-03-29 19:49:52 +08:00
CJACK
3ab9d44f60
feat: suppress output of partial XML tool tag fragments in stream processing
2026-03-29 14:59:30 +08:00
CJACK
4b42fe9086
fix: prevent XML tool call leakage by strictly matching opening and closing tag pairs during streaming
2026-03-29 14:40:47 +08:00
CJACK
302bcefeb5
feat: implement XML-based tool call extraction and refactor sieve utilities into dedicated modules
2026-03-29 13:01:11 +08:00
CJACK.
56a3ed19e8
fix(toolcall): support canonical xml params and guard json shadowing
2026-03-29 11:15:52 +08:00
CJACK.
958f4e39b5
feat(toolcall): prioritize XML for model output and parsing
2026-03-29 10:53:38 +08:00
CJACK.
97a81c4191
Harden toolcall leak interception for function-style payloads
2026-03-22 20:07:12 +08:00
CJACK.
1676c8e4f2
Add backward-compatible aliases for renamed fenced-example tests
2026-03-22 16:25:03 +08:00
CJACK.
b108a7915a
Support nested fenced blocks in stream fence tracking
2026-03-22 15:12:55 +08:00
CJACK.
6a39543288
fix tool-call json leaks when feature_match is disabled
2026-03-22 08:29:01 +08:00
CJACK.
7ca3f141c6
Pass refactor line gate for tool sieve files
2026-03-22 01:04:01 +08:00
CJACK.
648bb74587
Fix streaming whitespace trim and capture TOOL_RESULT_HISTORY
2026-03-22 00:44:44 +08:00
CJACK.
6758514c61
chore: remove obsolete openai tool-history normalization helpers
2026-03-22 00:28:32 +08:00
CJACK.
7061094964
Fix fence-strip regression for closed code blocks before tool JSON
2026-03-21 17:39:08 +08:00
CJACK.
b8ff678f24
Align Vercel JS toolcall filtering with Go semantics
2026-03-21 00:23:22 +08:00
CJACK.
17405be300
shrink vercel stream module under line gate limit
2026-03-20 09:47:22 +08:00
CJACK.
5bc03e5de6
align vercel js stream toolcall delta behavior with go runtime
2026-03-20 09:36:45 +08:00
CJACK.
184a3d1e4e
Sync Node tool-call parsing with aggressive fenced/mixed policy
2026-03-20 02:16:37 +08:00
CJACK.
145501d4a5
fix(tool-sieve): allow mixed prose + tool json interception
2026-03-20 01:15:32 +08:00
CJACK.
2d5103997b
fix(tool-sieve): keep mixed prose tool json in strict text mode
2026-03-20 01:15:15 +08:00
huangxun
c9c59f2490
refactor(toolcall): enhance tool call extraction with multiple keywords and safety limits
...
- Add support for multiple keywords: tool_calls, function.name:, [tool_call_history]
- Add OOM protection with search limits in extractToolCallObjects
- Add max scan length limit in extractJSONObject to prevent OOM on unclosed objects
- Update tool_sieve to handle more tool call patterns
- Add loose JSON repair in parseToolCallPayload for better error recovery
This improves DeepSeek tool call parsing robustness.
2026-03-17 16:28:27 +08:00
huangxun
7318d1f4a8
fix(toolcall): fix deepseek function calling bug and add json repair
...
- Fix: Expand stream sieve keywords to support function.name: and [TOOL_CALL_HISTORY]
- Fix: Add repairInvalidJSONBackslashes to handle unescaped backslashes in Windows paths
- Sync: Update JS stream sieve to match Go implementation
- Test: Add unit tests for backslash repair and deepseek format parsing
- Tool: Move repair json test tool to tests/repair_json_tool.go
2026-03-13 13:47:40 +08:00