CJACK.
b8ff678f24
Align Vercel JS toolcall filtering with Go semantics
2026-03-21 00:23:22 +08:00
CJACK.
dc73e8a6da
Gate biz_code refresh attempts to auth-indicative failures
2026-03-20 23:54:13 +08:00
CJACK.
b8495eeeb3
surface account test config writeability and save failures
2026-03-20 23:34:29 +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.
88a79f212d
Fix path control-char repair on JSON fallback parses
2026-03-20 02:52:27 +08:00
CJACK.
acfb3b225d
Split toolcall input parsing to satisfy line gate
2026-03-20 02:37:23 +08:00
CJACK.
99a6164000
Fix path corruption when parsing tool call JSON strings
2026-03-20 02:31:37 +08:00
CJACK.
184a3d1e4e
Sync Node tool-call parsing with aggressive fenced/mixed policy
2026-03-20 02:16:37 +08:00
CJACK.
c4ec14f49a
Fix refactor line gate for toolcalls_parse
2026-03-20 02:12:34 +08:00
CJACK.
fb5fc0e885
Default to aggressive tool-call interception in mixed/fenced text
2026-03-20 02:03:46 +08:00
CJACK.
20b603666d
Allow standalone parser to detect mixed prose tool JSON
2026-03-20 02:03:32 +08:00
CJACK.
4d549b7102
Revert "Merge branch 'dev' into codex/fix-issues-found-in-review"
...
This reverts commit 33b0d1d144 , reversing
changes made to efb484ba4f .
2026-03-20 01:38:11 +08:00
CJACK.
33b0d1d144
Merge branch 'dev' into codex/fix-issues-found-in-review
2026-03-20 01:23:00 +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
CJACK.
52e7e7aae8
fix: unblock line gate and harden pow token recovery
2026-03-20 00:50:05 +08:00
CJACK.
2bbf603148
fix: address PR #97 review findings
2026-03-18 00:52:24 +08:00
CJACK.
d14b8a0664
Stabilize tool-call parsing and pass refactor gate
2026-03-18 00:45:28 +08:00
CJACK.
f16e0b579e
Merge pull request #92 from valkryhx/main
...
fix(toolcall): fix deepseek function calling bug and add json repair
2026-03-18 00:15:47 +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
16216cc2ca
fix(toolcalls): support nested objects in missing array brackets repair
...
- Upgrade missingArrayBracketsPattern regex to support single-level nested {} objects
- This fixes DeepSeek's list hallucination where tool call JSON objects contain nested fields like {"input": {"q": "value"}}
- Add comprehensive test cases covering 2-5 nested objects, mixed nested/primitive fields, and real DeepSeek 8-queen output patterns
- Add RepairLooseJSON function to repair unquoted keys and missing array brackets
Fixes: DeepSeek tool call parsing with nested JSON objects
2026-03-17 16:24:16 +08:00
latticeon
f6296d506f
fix: 修改批量删除会话方式
...
- 从逐条单个删除改为官方的批量删除接口
- 单个删除函数保留备用
2026-03-16 16:23:39 +08:00
latticeon
dfea092583
fix: 更新测试 mock 结构体以实现新增的接口方法
...
会话管理功能新增接口方法后,同步更新测试 mock 结构体:
- mockOpenAIConfig: 添加 AutoDeleteSessions() 方法
- streamStatusDSStub: 添加 DeleteAllSessionsForToken() 方法
- testingDSMock: 添加 DeleteAllSessionsForToken() 和 GetSessionCountForToken() 方法
同时修复 client_session_delete.go 中 fmt.Errorf 使用非常量格式字符串的编译错误,改用 errors.New()
2026-03-16 11:58:07 +08:00
latticeon
af7dc134bb
fix: 修复会话管理相关问题并拆分文件
...
1. 修复无限循环问题
- DeleteAllSessions/DeleteAllSessionsForToken 添加无进度检测
- 连续 3 轮删除失败则退出循环
- DeleteAllSessionsForToken 添加 cursor 推进逻辑
2. 修复字段语义不准确
- TotalCount 重命名为 FirstPageCount
- 明确该值仅统计第一页,多页账户需关注 HasMore
3. 修复 defer 执行顺序问题
- 合并两个 defer,确保先删除会话再释放账号
- 使用同步删除避免并发截断风险
4. 文件拆分
- 新建 client_session_delete.go 处理会话删除
- client_session.go 专注于会话查询
2026-03-16 01:44:21 +08:00
latticeon
2657d37f76
添加会话数量显示与清除功能
...
添加会话清除功能,增强安全性,避免账号被盗等情况泄露源代码
账号列表点击测试后显示账号的会话数量
设置页添加自动清除开关,每次调用后清除被调用账号的所有会话
2026-03-16 00:50:31 +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
CJACK.
12d5f136d5
fix(toolcall): pass gates and align go/js multi-layer parser
2026-03-09 19:16:28 +08:00
CJACK.
ea4bd1e483
fix: parse invoke/tool_call arguments in xml compatibility paths
2026-03-08 13:16:12 +08:00
CJACK.
286d266723
Revert "Resolve PR #82 merge conflicts and restore tool-call parsing (invoke/argument and XML arguments)"
2026-03-08 02:38:29 +08:00
CJACK.
11b2f24fc2
Merge origin/dev into PR branch and resolve toolcall parser conflicts
2026-03-08 02:30:12 +08:00
CJACK.
60e9d707d4
Merge origin/dev into PR branch and resolve toolcall test conflicts
2026-03-08 01:10:53 +08:00
CJACK.
9b93badb57
Harden markup tag parsing to avoid mismatched-tag false positives
2026-03-08 00:55:32 +08:00
CJACK.
892213071a
Align Go/JS tool-call parsing semantics and compat fixtures
2026-03-08 00:12:43 +08:00
CJACK.
6c39c8e191
fix: 修复 text 为空时 content 回退丢失问题
2026-03-06 21:24:26 +08:00
CJACK.
0e261ff0a0
refactor: 统一内容归一化逻辑并补充 nil 回归测试
2026-03-06 18:25:27 +08:00
CJACK.
fab326eca1
fix: 修复工具历史注入 null 导致调用格式混乱
2026-03-05 18:20:42 +08:00
CJACK.
a6aa4a1839
补充工具调用行为说明并修正测试文档过时命令
2026-03-03 00:39:02 +08:00
CJACK.
3ae5b57ebe
fix(deepseek): normalize mobile before login token refresh
2026-03-02 23:48:54 +08:00
CJACK
d731a1fd4f
门禁
2026-03-01 07:20:24 +08:00
CJACK
93e9fb531d
js对齐
2026-03-01 07:15:35 +08:00
CJACK
321b8a89ee
优化
2026-03-01 06:42:07 +08:00
CJACK
d84875e466
工具调用优化
2026-03-01 06:33:49 +08:00
CJACK
a302fb3c25
修复
2026-03-01 05:55:46 +08:00
root
21b12f583a
fix(admin): 账号测试始终发送默认消息以验证完整链路
...
测试接口不再仅验证会话创建,改为始终发送「你是谁?」
走完整 completion 路径,确保被封禁账号能被正确识别为失败。
2026-02-28 10:18:26 +08:00
root
d97b86e0ee
feat(webui): 账号列表添加搜索过滤功能
...
- 后端 GET /admin/accounts 支持 ?q= 参数,大小写不敏感匹配 identifier/email/mobile
- 前端搜索框内嵌于标题栏按钮行(测试全部按钮前)
- 搜索时重置到第 1 页,分页 total 反映过滤后数量
- 无匹配结果时显示专属提示文案(中英文)
2026-02-28 09:57:19 +08:00
CJACK.
9f91da403f
Merge pull request #59 from ronghuaxueleng/feature/account-improvements
...
feat: 账号测试状态持久化、分页选择器、点击账号名复制
2026-02-27 23:16:05 +08:00
root
f6f6a651fd
feat: 账号测试状态持久化、分页选择器、点击账号名复制
...
- Account 结构加 TestStatus 字段,测试后写入 config.json
- listAccounts 接口返回 test_status,前端根据结果显示红/绿/黄状态点
- 分页选择器支持 10/20/50/100/500/1000/2000/5000
- 点击账号名自动复制到剪贴板,hover 显示复制图标,复制后显示绿色对勾
2026-02-27 21:30:43 +08:00
BigUncle
d3b5493d2e
fix(claude): guard thinking tool-call fallback when final text exists
...
- only parse tool_calls from thinking when finalText is empty
- apply the same guard in stream runtime finalizer
- add regression tests for non-stream and stream paths
2026-02-26 00:41:39 +08:00
BigUncle
255feb2e65
fix(claude): 修复工具调用兼容与解析回退
...
- Claude 工具定义兼容 input_schema 与 function.parameters
- tool_calls 解析增加 thinking 回退与大小写无关工具名匹配
- 补充 claude/util 相关回归测试
2026-02-25 18:03:25 +08:00