CJACK.
7061094964
Fix fence-strip regression for closed code blocks before tool JSON
2026-03-21 17:39:08 +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.
2bbf603148
fix: address PR #97 review findings
2026-03-18 00:52:24 +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
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.
0ce3fd22a7
Address PR review: fenced-stream guard and multi ANTML calls
2026-03-07 17:45:43 +08:00
CJACK.
25e40cc3a6
Fix quality gate and expand Claude tool-call format compatibility
2026-03-07 17:27:29 +08:00
CJACK.
af68d21095
Improve Claude Code tool-call compatibility across mixed formats
2026-03-07 16:53:05 +08:00
CJACK.
1fafd25e86
add output_text.done event and remove transient stability report
2026-03-07 16:00:53 +08:00
CJACK.
94cf1bfcc7
drop nameless assistant tool history entries
2026-03-07 14:45:10 +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
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
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
CJACK
0d3d535c08
feat: prevent raw tool call JSON leakage for unknown or rejected tool calls and consolidate container publishing to GHCR.
2026-02-23 00:27:46 +08:00
CJACK
d4017b87c1
refactor: Relocate JavaScript source and Node.js test files to dedicated directories and extract OpenAI stream runtime tool call finalization logic.
2026-02-22 22:37:08 +08:00
CJACK
7da012a4d8
feat: Include an empty content field in the final streamed stop chunk and add tests to validate its structure.
2026-02-22 21:44:08 +08:00
CJACK
6c318f1910
fix: Ensure incomplete tool call items are properly closed and required tool choice failures are correctly handled for malformed payloads.
2026-02-22 21:27:42 +08:00
CJACK
a9403c5392
feat: add Gemini API compatibility, refactor stream rendering, and enhance tool call handling and configuration options
2026-02-22 20:53:42 +08:00
CJACK
ae7dce0b32
feat: Improve OpenAI tool call handling by passing unknown tool calls as content and filtering streamed tool calls by schema.
2026-02-22 19:33:52 +08:00
CJACK
6c48429b90
feat: Implement DeepSeek integration, refactor model adapters for streaming and tool calls, enhance admin and account management, and introduce new UI features for settings, API testing, and Vercel sync.
2026-02-22 17:25:48 +08:00
CJACK
5d3989a9a7
test: Add stream status capture tests for OpenAI and Claude adapters.
2026-02-22 01:28:08 +08:00
CJACK
920767f486
feat: Add Gemini adapter, improve API key fallback for Gemini AI Studio compatibility, and enhance OpenAI tool call streaming.
2026-02-22 01:26:08 +08:00
CJACK
7a4e994f3a
test: add requestTraceID priority tests and refine tool call delta assertion in streaming responses.
2026-02-21 19:31:27 +08:00
CJACK
13b1ec46ee
feat: Implement request tracing and enhance tool call streaming stability by preventing speculative deltas and improving multi-call finalization.
2026-02-21 19:19:05 +08:00
CJACK
e2cb07f08c
feat: Introduce stable call_id for OpenAI function_call and tool_calls events in streaming output, including reasoning text.
2026-02-21 09:47:38 +08:00
CJACK
db49a3ec02
feat: Standardize tool call and result history formatting for OpenAI and Claude adapters with updated prompt guidance.
2026-02-20 03:06:08 +08:00
CJACK
210d9f5793
feat: enhance message normalization for OpenAI tool calls and Claude system message tool injection
2026-02-19 04:44:01 +08:00
CJACK
7307a5cc9a
feat: Implement admin settings UI, enhance admin authentication with password hashing, and add new streaming runtime logic for Claude and OpenAI adapters with extensive compatibility tests.
2026-02-19 02:45:38 +08:00
CJACK
d21aedac83
feat: Hide raw tool call JSON from output_text in OpenAI-style responses when structured tool calls are present.
2026-02-19 00:28:44 +08:00
CJACK
df9aea194c
fix: Remove redundant text accumulation to prevent duplicate output in streamed responses and add a test for it.
2026-02-19 00:08:03 +08:00
CJACK
2dcc230852
feat: Introduce DetermineCaller for auth without account pooling and make wide_input_strict_output configurable.
2026-02-18 23:53:50 +08:00
CJACK
51c543631b
refactor: Extract OpenAI streaming response payload construction into dedicated utility functions.
2026-02-18 23:40:34 +08:00
CJACK
895423852f
refactor: extract Claude and OpenAI response rendering into new util/render package
2026-02-18 23:35:37 +08:00
CJACK
eb253a9d3a
feat: Introduce standard request normalization and response building for OpenAI and Claude, enhance tool call streaming, and improve caller identification.
2026-02-18 23:35:17 +08:00
CJACK
3a75b75ae0
feat: Introduce model alias resolution, enhanced configuration options, and improved OpenAI/Claude adapter handling for responses, embeddings, and tool calls.
2026-02-18 23:06:18 +08:00
CJACK
7fc10573ab
feat: Improve tool sieve to correctly preserve trailing text within the same chunk as a tool call.
2026-02-18 17:24:43 +08:00
CJACK
f2b10992cc
test: Introduce comprehensive edge case tests for various internal packages including SSE, Claude, Auth, Account, Config, Deepseek, Admin, and Util.
2026-02-18 16:52:16 +08:00
CJACK
deec72416e
test: Introduce comprehensive edge case tests across multiple modules and refine tool call and OpenAI handler logic.
2026-02-18 16:51:30 +08:00