这个版本更新了什么#
XDict 0.4.2 brings the AI providers, the service list and the model list to Settings ▸ AI.
- “设置 ▸ AI”现在会列出已支持的服务,分为这台 Mac 上运行的本地服务和云端服务。选择后,会自动填入地址,并按该服务要求的方式连接和提交密钥。点击加载模型会获取该服务提供的模型列表,供你选择;每次点击都会重新获取。如果地址、服务或密钥发生变化,就不会再显示之前获取的列表。
- 所有服务共用一份保存在 Keychain 中的密钥,切换服务时会保留它。如果密钥不适用于当前服务,点击“测试”或下次提问时会明确报错。
- AI 服务接入使用 sayso 的组件,版本固定为 0.5.1:云端返回 4xx 错误时,会显示服务器给出的具体原因,不再笼统地提示返回内容格式有误;Claude Code 的最低版本设为实际验证过的 2.1.304;检查 Codex 时会重新获取最新登录状态;Apple 的请求频率限制和内容生成错误也会分别识别。
- 设置 ▸ AI 现在会准确说明检查结果:如果只确认了程序可用或地址有效,就显示“已配置”;只有确认已登录,才显示“已就绪”。地址栏会保留你输入的内容,但只保存包含主机名的完整 http(s) 地址;输入内容不是有效地址时,无法点击“测试”和“加载模型”。
- 结合上下文理解内容:预览内容只有点击“发送”才会发出;用户拒绝后,等待发送的问题不会再发出;针对当前条目的提问如果被服务拒绝,会显示服务给出的具体原因,并且只在重试可能有用时提供重试选项;如果请求一开始就被拒绝,会清除上一次尝试留下的提示词。
- 设置检查中剩余的问题已处理:登录流程结束时会注明所用的登录来源;配置变更后,不再保留旧配置下的密钥测试失败结果;登录信息按工具原本的顺序显示;提示词模板统一使用一条备用处理规则;查询弹窗的测试也不再受其他测试当前选中哪个窗口或输入框的影响。 Versions: macOS 0.4.2 (build 5), core 0.4.0, Windows 0.1.0 (unchanged). Requires Apple silicon and macOS 27 or later. Bring your own MDict dictionaries. Install or upgrade:
brew install --cask xiaolai/tap/xdict
brew upgrade --cask xiaolai/tap/xdict
Validation: make test on the build Mac — SwiftLint, the tooling checks, every Swift suite and the warnings gate — went green twice before an independent verifier's findings, and green again after they were fixed. The release build ran the same lint, the full Swift test suites and the release warnings gate on the build Mac when this bundle was made; the release smoke ran on the stapled, release-signed bundle on the E2E Mac, and Gatekeeper accepted the app, the disk image and the app inside it on both Macs. E2E was not run: it is on demand, and it never gates a release.
SHA-256 (XDict-0.4.2.dmg): d2f499668137922b781aea452e2cea62032c9d012e6e38c4e63fde6eed51f49e
以上译自作者写在 GitHub 上的英文更新说明。查看原页面