DeepSeek open-sources the chat-demo frontend, integrating the same search, link reading, and voice features as the App
English text is being prepared.
DeepSeek announced in its official API documentation that it is opening up the App's capabilities—including web search, file parsing, link reading, safety moderation, and voice—as APIs, and has open-sourced the reference frontend chat-demo, which surpassed 3,000 stars within three days of release. The demo has no application backend; the browser sends requests directly to the API. The default model is hardcoded as deepseek-flash, chat goes through the Anthropic-compatible Messages / Files interfaces, and voice goes through separate ASR and TTS. Search and link reading are handled server-side, all generation requests are fixed to include safety_check: high, the API Key is stored in localStorage, and conversations and attachments are stored in IndexedDB.
Why read this
AI score 62
The original article breaks down how chat-demo uses a static frontend to replicate the App's search, link reading, and voice pipelines, and examines the design trade-offs of the server-side tools and callback protocol.
Topics
Body
DeepSeek 开源 chat-demo:用静态前端接上 App 同款搜索、读链接和语音
11.13 DeepSeek 在官方 API 文档里宣布,把 App 中的联网搜索、文件解析、链接阅读、安全审核和语音等能力以 API 形式开放给开发者,并同时开源参考前端 chat-demo。开源三天,Star 已经超 3000 了!
开源地址: https://t.co/EI6WyzAxhy 在线体验: https://t.co/6BBnsOntJQ
# 没有应用后端的参考客户端
浏览器直接请求配置的 API,默认是 https://t.co/3FwgW6PKlb。可以在线试用,也可以从 Releases 下载压缩包后双击 index.html;本地开发需要 Node.js 22.12+ 和 pnpm。直接用本地文件打开时,浏览器和 API 都要允许 file:// 的存储和跨域。
默认模型在代码里写死为 deepseek-flash。聊天走 Anthropic 兼容的 Messages / Files 接口,语音走独立的 ASR 和 TTS。多会话、消息分支、流式回答、深度思考、搜索引用、附件和朗读等,都是为了对齐官方 App 的体验。
# 搜索和读链接在服务端完成
客户端负责展示返回的内容块,并在下一轮把该回传的部分原样送回。阅读链接工具始终声明;是否加上 deepseek_web_search,由本地的智能搜索开关决定;深度思考对应 thinking。所有生成请求都固定带 safety_check: high,因此会走带服务端工具的那套协议。系统提示是一句固定身份说明:「该助手为 DeepSeek,由深度求索公司创造。」
回传时,历史思考和搜索结果不再发送;只有成功读过的链接会带上 signature,供服务端恢复网页正文。若服务端给出安全拒绝,已经流下来的思考和正文要由客户端丢弃,只保留工具块。新对话若还没有标题,结束时会向服务端要一句自动标题。每轮还会插入 latest_reminder,内容是日期、星期、位置、Web 和界面语言,日期按浏览器本地时区计算。
API Key 和设置存在 localStorage,会话和附件原件存在 IndexedDB。发送、上传和语音都会把相应内容交给 API;清空本地对话不会删除已经传到服务端的文件。历史导入导出用 ZIP,格式版本是 export_format_version: 3,可导入官方 DeepSeek 导出的记录;导入会替换全部本地会话。导出不含 API Key 和非图片附件原件,导入的回复也不能继续生成。