feat: 新增可选的 AI 文案改写流程#15
Draft
ahJin871 wants to merge 40 commits into
Draft
Conversation
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.
说明
这个 PR 新增了一个可选的 AI 文案改写流程,用于在文章采集后、进入编辑器前,对采集内容进行 AI 改写、候选生成和人工选择。
该功能默认关闭,不会影响现有的采集、编辑和发布路径。只有用户在 AI 设置中主动开启后,才会进入 AI 文案生成流程。
主要改动
新增 AI 设置页
新增 AI 文案生成页
新增创作模式
新增 AI 改写相关底层逻辑
隐私与安全说明
兼容性
该功能默认关闭。
如果用户不启用 AI 改写,原有的文章采集、编辑和发布流程保持不变。
如果用户启用 AI 改写,采集文章后可以先进入 AI 文案生成页,确认候选内容后再进入原编辑器继续处理。
测试
已验证:
执行过:
vitest相关测试vite build备注
这个 PR 改动相对较大,但 AI 相关代码尽量做了隔离,并且功能默认关闭。
如果维护者认为这个 PR 太大,我也可以按模块拆成更小的 PR,例如: