feat(ai): 增加 AI 功能支持 - #2
Open
hu874 wants to merge 4 commits into
Open
Conversation
hu874
commented
Jul 31, 2026
added 4 commits
July 31, 2026 19:16
新增 AI 配置界面,允许用户设置 OpenAI API Key 和模型
实现 AI 生成、润色和总结功能的接口
增加 AI 生成进度条和取消功能
更新相关国际化文本,支持多语言
将 AiGeneratingBarProps 中的 task 类型从字符串字面量改为 AiTask 类型
移除 AiInlinePrompt 和 AiSelectionBubble 中未使用的 AiMode 导入
增加对坐标获取失败的处理,避免潜在的运行时错误
新增 AiImageRequest 和 AiImageResponse 接口以支持图像生成
增加 AiContinueRequest 接口以支持继续写作功能
更新相关 API 路由以处理图像生成请求
修改 AiGeneratingBar 组件以支持新任务类型
更新国际化文件以添加新功能的翻译
新增 AI 配置测试接口,支持验证 baseUrl、model 和 apiKey 的有效性
增加对测试结果的状态反馈,提供连接成功与失败的提示信息
更新相关组件以支持测试功能的集成
调整 AI 相关逻辑以兼容新的配置测试流程
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.