feat: 接入 PDF、Word、Excel、CSV 与 PPT 附件读取 - #97
Draft
hifizz wants to merge 1 commit into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
ThreadChat 的附件上传链路已存在,但消息输入只允许文本和图片,已有 PDF 文本解析也没有接入 Composer。办公文件需要真正进入模型上下文,并让用户核对读到了什么。
关联 #82。这是办公文件阶段切片,不关闭整个跟踪 Issue。
变更
设计、API 支持核实、后续阶段与手动验收见 docs/attachments/office-input-mvp.md。
验证
已通过:
新增统一测试入口:
pnpm test:attachments。待实际环境验收
本环境没有生产数据库、R2 或模型凭据,尚未执行真实上传→持久化→付费模型调用的联调,因此先提交草稿 PR。验收步骤已写入设计文档。
仍不包含扫描件 OCR、图片/图表视觉、大表按问题检索和完整计算、旧版 DOC/XLS/PPT 解析、上传原地重试、草稿恢复与清理。公式不执行,缓存可能过期;第三方兼容端点尚未验证原生 Office 输入能力。
基于 main
7da00eaba9fb116a4ff4612b08005f51e886cd45。