Fetching metadata from the HF Docker repository...
-
feat: 对齐安卓端协议,隔离账号风控,透出文件元信息到对话历史
204848
基于安卓端最新抓包分析,修复以下问题:
P0 风控隔离:新增 account_identity.go,为每个账号生成独立 device_id 和 x-rangers-id,移除 x-rangers-id 全局硬编码,Account 新增 DeviceID/RangersID 字段支持用户自定义。
P1 协议对齐:create_session 移除多余 agent 字段;upload_file 移除 PoW 申请(仅 completion 需要 PoW);upload_file 恒携带 x-model-type 头;UploadFileResult 新增 AuditResult/ModelKind/SignedPath 字段。
文件审核开关:新增 file_audit.strict 配置,默认关闭(撤回机制对本项目无影响,completion 流完整推送,撤回事件在最后追加);新增 isPassedAuditResult/isFailedAuditResult 判断。
文件元信息透出(无论开关):chathistory.Entry 新增 file_infos 字段 + FileInfo 结构体;StandardRequest 新增 FileInfos,current_input_file 上传时转换并追加;chat_history.go 和 responsehistory/session.go 传递 FileInfos;前端 ChatHistoryDetail 新增 FileInfosView 组件;zh/en i18n 添加翻译。
其他:.gitignore 添加 *.har 通则排除抓包文件;新增 deepseek-recall-research.md 撤回机制研究文档。
-
Initial commit: ds2api with HF Spaces support
204848