Fetching metadata from the HF Docker repository...
Oct 31 3 days ago 01:15 feat(prompt): 新增 prompt_style 风格档位与自定义模型列表 luckfun233
- 新增 prompt_style:v2(缺省)/ legacy。legacy 把衔接指令换回 ce5a019 的
短文案,且不注入内置执行契约(自己配置的思考提示词仍然生效),用于恢复
旧版「几乎不加约束」的手感;未知值回落 v2,后台 PUT 传错返回 400
- 新增 model_profiles 自定义模型列表(缺省空,最多 50 条):id + base +
name/remark + 该模型专属 prompt;模型解析优先于内置别名映射,
/v1/models 一并列出(owned_by=ds2api)
- 模型提示词与全局 prompt_profile 互斥(命中优先,否则回落),与技能层合成
单个 System 段;注入点仍在历史拆分之后,不动 Messages
- 新增 GET/PUT /admin/model_profiles(整体替换语义 + 字符集/基模/上限校验)
- /admin/settings 增加 prompt_style 与 model_profiles 摘要
- 后台新增「自定义模型」板块与「内置提示词风格」下拉,中英文案同步
- 同步 prompt-compatibility.md / prompt-design.md / API(.*).md /
README.en.md / config.example.json Oct 24 10 days ago 07:15 refactor(prompt): 内置提示词分层重构,修复拆分后执行契约被埋 luckfun233
- 提示词收敛到 internal/promptcompat/prompt_texts.go 唯一来源,
history 包去掉自带文案,只保留一层委托
- 修复历史拆分后执行契约只留在附件里:拆分发生时重贴到可见 FinalPrompt
(只改 prompt,不动 Messages / PromptTokenText,切号重传不重复贴)
- 衔接指令新增「执行要求」:上文提过的体裁/篇幅/禁用项逐条满足,
并带「闲聊就不必硬套结构」的例外
- 新增 prompt_profile 提示词特化层(缺省关闭):default / writing 预设
或自定义正文,与技能层合成单个 System 段
- 去掉只对交付物成立的硬性文风规则(结论先行/不写铺垫/说明改动理由/
检查单位口径),改为触发条件或只留在 writing 预设,避免闲聊被压成公文
- 后台新增「提示词特化层」,GET/PUT /admin/settings 支持 prompt_profile
- 新增 docs/prompt-design.md,同步 prompt-compatibility.md / API(.*).md /
README(.*).md / config.example.json 06:09 refactor(prompt): 移除工具调用与技能注入的引导提示词 luckfun233
实测 DSML 工具调用会被上游风控识别(封号风险),且高频调用容易触发限速,
prompt 侧不再做任何引导:
- 不再生成 context_tools.txt 工具说明文件,也不再输出 DSML 调用格式要求
(You have access to these tools / TOOL CALL SCHEME / 必须调用工具);
只保留工具名提取,供 tools.enabled=true 时的响应侧 tool_calls 解析
- 技能块去掉引导语,只保留 <skill> 标签与正文,避免引导模型使用技能
- 历史拆分只上传对话记录文件;相关测试与文档同步更新 01:40 feat: 收敛 flash 模型系列,新增纯文本技能库与工具调用开关 luckfun233
- 模型:对外只保留 deepseek-v4-flash 系列(含 search/nothinking 变体),
pro/vision 旧名静默映射到 flash,不再出现在模型列表
- 思考/联网:适配 kelivo 思维强度(reasoning_effort 含 max、thinking.type、
reasoning.effort),显式联网信号(enable_search / 原生 web_search 工具)自动跟随
- 提示词:重写上下文衔接指令与对话记录格式(# 对话记录 + [role=xxx]),
禁止提及附件/文件/上下文;恢复并优化思考格式注入默认提示词
- 提示词:新增按 API Key 覆盖思考格式注入(custom/enabled/prompt)
- 工具调用:改为默认关闭(上游 DSML 风控/封号风险),新增 tools.enabled 开关,
关闭时忽略 tools、不注入工具说明、不解析 tool_calls
- 技能:新增纯文本技能库(实验性、默认关闭),技能正文以 System 段前置注入,
支持 skills.max_chars 截断与单 Key 覆盖(custom/enabled/ids)
- 日志:按 API Key 筛选、自定义保留条数(0-500)、json/markdown 导出
- 管理台:响应记录筛选栏/导出、工具开关、技能库编辑、Key 级注入与技能配置
- 文档:新增 docs/prompt-compatibility.md,同步 API.md/API.en.md/README/示例配置 Oct 20 14 days ago 14:23 docs: 第三阶段逆向(重发语义/配额频率/重打包/多端同步) luckfun233
基于新版 2.6.3(283) 静态逆向新增研究报告:消息树负 id 与 leaf 选取
解释“重发占同一条消息”;确认 regenerate_quota 本地强制默认 5 而
edit_quota 无消费点;给出 completion/edit/regenerate 端点等价性边界、
重打包与 Hook 可行性、以及 cache_version/cache_control 多端同步模型。 Oct 19 15 days ago 16:08 docs: 深入逆向 DeepSeek Android 撤回/配额机制(第二阶段) luckfun233
新增 docs/deepseek-android-recall-quota-phase2-research.md:基于 jadx
apktool/Ghidra 对 v2.6.2 的静态逆向,补齐消息存储(WCDB/分支树/leaf)、
CONTENT_FILTER 撤回 patch、edit/regenerate 配额、completion vs
edit_message vs regenerate 的端点语义,并给出反撤回/配额挂载/上下文
补齐的可行性与多方案分析。 15:45 Update deepseek-android-reverse-research.md Bai Chen
14:23 docs: add DeepSeek Android (v2.6.2) reverse-engineering research trae-research
Static analysis of the official deepseek.apk covering:
- network/API layer, request/response models, SSE JSON-patch (hy.java)
- local message storage (WCDB deepseek_chat_<uid>.db, per-session tables)
- content-filter/recall handling (CONTENT_FILTER + TEMPLATE_RESPONSE + ban_edit/ban_regenerate)
- edit/regenerate quota mechanism (ModelConfig.edit_quota/regenerate_quota)
- why copy-paste re-send goes through /chat/completion and bypasses the quota scope Oct 18 16 days ago 01:34 fix(auth): token 刷新改为无密码会话探针,密码登录仅作兜底 luckfun233
DeepSeek 的 token 是按设备绑定的长期会话凭证,不存在 access/refresh
两段式机制,也没有可换新的端点;原来的「刷新」实际是每 6h(以及每次
鉴权类失败)提交一次明文密码并过一次数美风控。
- 新增 Client.RefreshSessionToken:GET /api/v0/users/current 回填会话 token
- Resolver 刷新链改为探针优先,只有服务端明确拒绝会话才回退密码登录;
探针无法判定时,定时路径保留现有 token,失败恢复路径仍兜底登录
- 失效判定收窄到 401/403 与 code/biz_code 40001-40003(实测失效响应是
HTTP 200 + code=40003,只按状态码会漏判)
- 未注入探针时保持历史行为,测试与自定义装配不受影响
- 文档:research 文档补落地细节与线上实测,security 报告与 API.md 同步配置语义 Oct 17 17 days ago 13:02 docs: 新增 DeepSeek token 刷新机制逆向研究 luckfun233
结论:现有 RefreshToken 实际是完整重新登录(复交密码 + 过数美风控);
DeepSeek 无 refresh_token 机制,token 为按设备绑定的长期不透明会话串。
官方客户端的刷新方式是 GET /api/v0/users/current 回填 biz_data.token,
另有 POST /users/auth_token/check_device 的 rotate.token 轮换通道(抓包恒为 null)。
文档给出分阶段改造建议与未闭环的待验证项。 Sep 25 00:39 feat: 更新Web端接口文档,补充数美风控升级后的协议细节与失败分类说明 luckfun233
Sep 24 17:15 feat: 更新数美 SDK 相关文档,添加复现手册及工具链,修复解析逻辑 luckfun233
17:03 feat(shumei): enhance device ID generation and add options for UID luckfun233
- Introduced DeviceOptions struct to allow specifying a UID for device ID generation.
- Updated GetDeviceID and GetDeviceIDWithOptions functions to support the new options.
- Improved fingerprint data construction to align with browser SDK.
- Added comprehensive tests for device ID generation and fingerprint data handling.
fix(sse): refine handling of tool fragments in SSE parsing
- Updated ParseSSEChunkForContentDetailed to correctly identify tool fragments and prevent their content from leaking into the main response.
- Enhanced fragment type resolution to ensure proper handling of nested paths and status checks.
- Added tests to verify the correct behavior of tool fragments and their impact on stream parsing.
test(sse): add tests for search mode and fragment handling
- Implemented tests for various scenarios in the search mode, ensuring that tool fragments do not affect the main content.
- Verified that the response status behaves correctly in both fragment and response contexts… Jul 14 14:57 feat: 优化HTTP/2支持,调整拨号器以优先使用IPv4并兼容utls指纹 204848
13:04 feat: 更新Web端支持,强制使用HTTP/2并调整TLS拨号器以兼容IPv4 204848
Jun 9 09:25 feat: 新增数美SDK逆向研究报告及Web端接口实现文档 luckfun233