← 返回更新日志

Pi v0.74.1

2026-05-16 · GitHub 原文
### 新功能 - **图像生成支持** - 添加了图像生成 API、生成图像模型元数据,以及继承自 `@earendil-works/pi-ai` 的内置 OpenRouter 图像生成支持。 - **Together AI 提供商** - 将 Together AI 添加为内置提供商,支持 `/login` API 密钥认证、默认模型解析及设置文档。请参阅 [README.md#providers--models](https://github.com/earendil-works/pi/blob/v0.74.1/packages/coding-agent/README.md#providers--models) 和 [docs/providers.md](https://github.com/earendil-works/pi/blob/v0.74.1/packages/coding-agent/docs/providers.md)。 - **Windows ARM64 独立二进制文件** - 添加了 Windows ARM64 的独立发布制品。 - **改进终端与 Markdown 渲染** - 添加了继承自 `@earendil-works/pi-tui` 的 Markdown 列表缩进、任务列表复选框渲染、大型 Markdown 鲁棒性改进,以及内联图片定位修复。 ### 新增 - 添加了来自 `@earendil-works/pi-ai` 的图像生成支持,包括图像生成 API、图像模型元数据及内置 OpenRouter 图像生成支持([#3887](https://github.com/earendil-works/pi/pull/3887) by [@cristinaponcela](https://github.com/cristinaponcela))。 - 将 Together AI 加入内置提供商设置、`/login` API 密钥认证及默认模型解析([#3624](https://github.com/earendil-works/pi/pull/3624) by [@Nutlope](https://github.com/Nutlope))。 - 添加了 Windows ARM64 独立二进制发布制品([#4458](https://github.com/earendil-works/pi/pull/4458) by [@brianmichel](https://github.com/brianmichel))。 ### 修复 - 修复了 Node 26 中 OpenAI 兼容流在空闲五分钟后超时的问 题,通过将全局 fetch 路由至 pi 的 undici 调度器实现([#4519](https://github.com/earendil-works/pi/issues/4519))。 - 修复了 pnpm 全局包安装问题,通过从 pnpm 布局中解析全局包根目录解决。 - 修复了在沙盒化剪贴板拒绝访问下 macOS 的剪贴板访问错误,避免导致进程中止([#4492](https://github.com/earendil-works/pi/issues/4492))。 - 修复了作用域模型启动提示,使其显示配置的模型切换快捷键([#4508](https://github.com/earendil-works/pi/issues/4508))。 - 修复了资源路径显示,以区分在不同包位置发生冲突的包/资源名称。 - 修复了 macOS x86_64 上 `fd` 的自动下载问题,通过锁定最后一个提供 Intel macOS 二进制的版本解决([#4559](https://github.com/earendil-works/pi/issues/4559))。 - 修复了技能诊断功能,当技能名称与其父目录不一致时不再发出警告([#4534](https://github.com/earendil-works/pi/issues/4534))。 - 修复了提示词模板参数解析,使其按换行符分割未加引号的多行输入([#4553](https://github.com/earendil-works/pi/issues/4553))。 - 修复了 `--resume` 会话列表功能,限制正在进行的会话元数据加载,避免在大型会话历史中引发内存溢出(OOM)([#4583](https://github.com/earendil-works/pi/issues/4583))。 - 修复了交互式错误消息的渲染,添加尾部空格,使重载错误不会与资源列表重叠([#4510](https://github.com/earendil-works/pi/issues/4510))。 - 修复了 `.agents` 包的来源元数据,使其能顺利通过包管理器扫描。 - 修复了 Termux 设置文档中的嵌套代码块标记,使示例 AGENTS.md 能正确渲染([#4503](https://github.com/earendil-works/pi/issues/4503))。 - 修复了在扩展确认对话框聚焦时工具输出展开的问题([#4429](https://github.com/earendil-works/pi/issues/4429))。 - 修复了 Anthropic 流在 `message_stop` 之前结束时的自动重试机制([#4433](https://github.com/earendil-works/pi/issues/4433))。 - 修复了压缩摘要调用,将请求的输出令牌数限制在模型上限内。 - 修复了未捕获的交互模式异常,确保在退出前恢复终端状态([#4426](https://github.com/earendil-works/pi/pull/4426) by [@ofa1](https://github.com/ofa1))。 - 修复了 ANSI 转义序列剥离逻辑,以在移除依赖后匹配 `strip-ansi` 的行为。 - 修复了依赖移除后会话 ID 共享的 UUIDv7 序列生成问题。 - 修复了继承自 `@earendil-works/pi-ai` 的 OpenRouter 缓存令牌使用统计、Fireworks 缓存兼容性及 OpenAI Codex WebSocket 代理处理。 - 修复了继承自 `@earendil-works/pi-tui` 的 Markdown 列表换行、任务列表复选框、大型 Markdown 渲染、WezTerm 与 Kitty 键盘转义处理,以及短视口内联图片定位。 - 修复了跨包作用域的主题共享问题,避免扩展因 `Theme not initialized` 而崩溃([#4333](https://github.com/earendil-works/pi/issues/4333))。 - 修复了 macOS 上的快捷键提示,将 Alt 显示为 Option([#4289](https://github.com/earendil-works/pi/issues/4289))。 - 修复了交互式更新通知,当终端支持超链接时,将更新日志渲染为 OSC 8 超链接([#4280](https://github.com/earendil-works/pi/issues/4280))。