CJACK
55abf64717
feat: add model type support for file uploads with automatic resolution and header propagation
2026-05-02 00:55:17 +08:00
王
706e68de23
fix: increase stream timeout constants for large-context models; guard against context-cancelled double-recording
...
- Increase StreamIdleTimeout from 90s to 300s and MaxKeepaliveCount from 10 to 40
to prevent premature stream termination with DeepSeek V4 Pro (~50K token contexts)
- Add r.Context().Err() check after ConsumeSSE in empty_retry_runtime (chat + responses)
to prevent historySession.error() from overwriting historySession.stopped()
when the request context is cancelled
References:
- MaxKeepaliveCount=10 creates a 50s no-content timeout that kills the stream
before DeepSeek V4 Pro can produce its first token with large contexts
- Hermes Agent reports 'No response from provider for 180s' because the
underlying SSE connection was already terminated by ds2api at 50s
- Context cancellation path: OnContextDone -> stopped(), then finalize()
with empty output -> retry -> error() overwrites stopped()
2026-05-01 21:11:36 +08:00
CJACK
0a6ef8e3f2
fix: remove bufio.Scanner 2MiB line limit for SSE; support quasi_status direct patch
...
Replace bufio.Scanner with bufio.NewReaderSize + ReadBytes('\n') across all
SSE read paths to preserve long single-line data (e.g. write_file content).
Add quasi_status and auto_continue handling as direct path-based patches in
both Go continue observer and Node vercel_stream_impl, mirroring existing
batch-patch logic. Add 2MiB+ line throughput tests at every SSE layer.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-01 15:45:17 +08:00
CJACK
fd0ec29991
refactor: generalize DSML tag parsing to tolerate model noise; split tiktoken by build tags
...
Replace hardcoded DSML typo variant lists in Go/Node tool call parsers with
generalized prefix consumption that tolerates repeated leading <, repeated DSML
prefix noise, and trailing pipe terminators. Split tiktoken-dependent token
counting into a build-tagged file for non-cgo platform compatibility. Add /data
directory to Dockerfile for bind-mount permissions.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-01 15:17:11 +08:00
CJACK.
0f89823526
chore(sse): bump client version and refresh longtext stream fixtures
2026-04-30 02:05:45 +08:00
CJACK.
ae28e33184
fix: preserve continue state when chunk status is missing
2026-04-29 23:25:18 +08:00
MiY
241334c658
Fix stream compatibility and vision model exposure
2026-04-29 20:23:13 +08:00
CJACK
fb43bd92f5
版本号修改
2026-04-27 20:12:33 +08:00
CJACK
abc96a37d8
refactor backend API structure
2026-04-26 06:58:20 +08:00
CJACK
131ca7d398
feat: revamp DeepSeek v4 model handling
...
- replace legacy DeepSeek ids with the new deepseek-v4 model family\n- move thinking control to request parameters and preserve assistant reasoning content\n- switch history split to IGNORE transcript injection and map upload auth failures to 401\n- update admin defaults, API docs, samples, and tests for the new model scheme
2026-04-26 00:02:14 +08:00
CJACK
acb110865f
feat: implement cross-account validation and improved error handling for file attachments in API tester
2026-04-13 03:15:12 +08:00
CJACK
ffca8be597
feat: implement file readiness polling and add IsImage field to upload results
2026-04-13 02:55:45 +08:00
CJACK
d53a2ea7d2
refactor: remove unused purpose parameter from upload and upstream empty output handlers
2026-04-13 01:59:51 +08:00
CJACK
daa636e040
refactor: handle upstream thinking-only responses as errors and sanitize dangling think tags in output
2026-04-13 01:55:14 +08:00
CJACK
2027c7cd77
fix: add JSON headers to DeepSeek requests and prevent string content from being parsed as file IDs in OpenAI adapter
2026-04-12 23:49:56 +08:00
CJACK
caafdedb00
feat: implement OpenAI-compatible file upload and reference handling for DeepSeek API
2026-04-12 23:30:22 +08:00
CJACK.
433a3a877d
feat(prompt): align DeepSeek prompt assembly with tokenizer-style turns
2026-04-12 13:59:42 +08:00
Shuaihao
ba76a2163b
Add default, expert, and vision DeepSeek model families
2026-04-08 14:37:22 +08:00
CJACK.
84050d87e4
fix proxy fallback binding and redact proxy password responses
2026-04-07 21:22:28 +08:00
Jason.li
8ae2ea10c8
feat(proxy): add proxy IP management and account routing
...
Add admin CRUD and connectivity checks for SOCKS5/SOCKS5H proxy nodes.
Allow accounts to bind to a proxy, route DeepSeek requests through the selected node, and expose proxy management in the admin UI.
2026-04-07 14:16:13 +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
da778a18fb
refactor: replace WASM-based PoW with a high-performance native Go implementation and add context support for cancellation.
2026-04-07 01:20:01 +08:00
CJACK
e7d561694a
refactor: replace WASM-based PoW solver with a native Go implementation in the pow package
2026-04-07 00:10:36 +08:00
CJACK.
37fb758191
Make full quality gates pass across repository
2026-04-06 13:41:58 +08:00
CJACK.
a8c160b05d
fix: parse DeepSeek accumulated_token_usage robustly and stabilize lint
2026-04-06 11:14:48 +08:00
CJACK
0b0cf60982
feat: propagate Proof-of-Work header to auto-continue requests and ensure remote session deletion ignores parent context cancellation
2026-04-05 14:33:09 +08:00
CJACK
32b9cbb61f
feat: implement automatic completion continuation for incomplete DeepSeek responses
2026-04-05 13:59:39 +08:00
CJACK.
3fccec0e22
test: remove unused asFloat helper
2026-03-22 10:24:11 +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.
52e7e7aae8
fix: unblock line gate and harden pow token recovery
2026-03-20 00:50:05 +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
CJACK.
3ae5b57ebe
fix(deepseek): normalize mobile before login token refresh
2026-03-02 23:48:54 +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
541816f2ab
feat: implement local dev packet capture functionality with admin endpoints and configurable limits for debugging.
2026-02-20 03:46:15 +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
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
07de35a093
refactor: centralize SSE stream parsing logic into a new sse package and update the PoW solver to honor context cancellation during module acquisition.
2026-02-17 04:40:01 +08:00
CJACK
2cde0a1d84
refactor: Enhance WASM POW solver with channel-based pooling and configurable size, update token estimation, and fix CORS origin reflection.
2026-02-17 03:34:48 +08:00
CJACK
534fd1d14b
feat: centralize utility functions, abstract SSE stream collection, and add concurrency to admin account testing.
2026-02-17 03:31:19 +08:00
CJACK
4251438ff5
feat: Implement graceful server shutdown, optimize WASM module instantiation, remove tokenizer files, and refine config saving and admin key warning.
2026-02-17 03:23:56 +08:00
CJACK
f82a7e3e3c
fix: embed admin webui and wasm for serverless runtime
2026-02-16 18:56:11 +08:00
CJACK
c7ffcd76e6
feat: Enhance DeepSeek API compatibility by updating SSE parsing, standardizing error responses, and improving API key management in the tester UI.
2026-02-16 15:17:42 +08:00
CJACK
a50e2ef5cd
feat: Introduce a new Go-based DeepSeek API proxy with adapters for Claude and OpenAI, including SSE parsing and updated build configurations.
2026-02-15 19:50:26 +08:00