← 返回更新日志

Pi v0.82.1

2026-07-25 · GitHub 原文
### 新功能 - **Claude Opus 5** — 已在 Anthropic 和 Amazon Bedrock 上线,支持自适应思考(含 `xhigh`)、推理配置及提示词缓存。详见 [Providers](https://github.com/earendil-works/pi/blob/v0.82.1/packages/coding-agent/docs/providers.md#api-keys)。 - **Anthropic 网关 Bearer 认证** — `ANTHROPIC_AUTH_TOKEN` 用于对需要 `Authorization: Bearer` 的 Anthropic 兼容网关进行认证,包括上下文压缩和分支摘要。详见 [Environment Variables or Auth File](https://github.com/earendil-works/pi/blob/v0.82.1/packages/coding-agent/docs/providers.md#environment-variables-or-auth-file)。 - **更快、更稳定的模型目录** — pi.dev 目录通过 `If-None-Match` 进行重新验证,未变更的提供商将返回空的 `304` 响应,且 llama.cpp 模型在重启后仍能保持列出。详见 [llama.cpp](https://github.com/earendil-works/pi/blob/v0.82.1/packages/coding-agent/docs/llama-cpp.md)。 ### 新增 - 向自定义消息渲染器暴露了 `outputPad` 设置。详见 [Extensions](https://github.com/earendil-works/pi/blob/v0.82.1/packages/coding-agent/docs/extensions.md)([#7045](https://github.com/earendil-works/pi/pull/7045) by [@xl0](https://github.com/xl0))。 - 为 Anthropic 兼容网关添加了继承的 `ANTHROPIC_AUTH_TOKEN` Bearer 认证。详见 [Providers](https://github.com/earendil-works/pi/blob/v0.82.1/packages/coding-agent/docs/providers.md#environment-variables-or-auth-file)([#5871](https://github.com/earendil-works/pi/issues/5871))。 - 为 Anthropic 和 Amazon Bedrock 添加了继承的 Claude Opus 5 支持,包含自适应思考、推理配置、提示词缓存,并保留了 AWS 验证消息([#7081](https://github.com/earendil-works/pi/pull/7081) by [@unexge](https://github.com/unexge),[#7083](https://github.com/earendil-works/pi/pull/7083) by [@davidbrai](https://github.com/davidbrai))。 ### 变更 - 将 pi.dev 模型目录刷新改为使用 `If-None-Match` 进行重新验证,未变更的提供商目录将返回空的 `304` 响应,而非完整下载。 - 将继承的 Radius OAuth 设备授权、令牌交换及刷新请求改为直接使用配置的网关。 - 将继承的模型加载错误改为追加底层原因,因此像 `OAuth refresh failed for openai-codex` 这类认证失败会报告提供商的实际响应,而非仅显示基础包装消息。 ### 修复 - 修复了认证完全解析为请求头的提供商的上下文压缩和分支摘要问题([#5871](https://github.com/earendil-works/pi/issues/5871)) - 修复了不可用的限定模型在 `/models` 中被隐藏的问题,允许在不手动编辑设置的情况下将其移除([#6949](https://github.com/earendil-works/pi/issues/6949),[#7032](https://github.com/earendil-works/pi/pull/7032) by [@christianklotz](https://github.com/christianklotz))。 - 修复了启动时上下文文件发现逻辑,跳过与上下文文件名(如 `AGENTS.md`)匹配的目录,从而消除 `EISDIR` 警告([#7106](https://github.com/earendil-works/pi/pull/7106) by [@mrexodia](https://github.com/mrexodia))。 - 修复了 llama.cpp 扩展以持久化其模型目录,确保在首次成功刷新前 llama.cpp 模型仍能保持列出。详见 [llama.cpp](https://github.com/earendil-works/pi/blob/v0.82.1/packages/coding-agent/docs/llama-cpp.md)([#7072](https://github.com/earendil-works/pi/pull/7072) by [@davidbrai](https://github.com/davidbrai))。