发布日期: 2026-06-16
版本号: v0.79.5

Pi 版本 v0.79.5 带来了多项新功能与修复。新增功能包括支持在 auth.json 中为各提供商(如 Cloudflare、Azure OpenAI、Google Vertex、Amazon Bedrock)配置特定的环境变量、缓存和代理设置;提供了全局 HTTP 代理配置项以统一管理代理;以及 Vercel AI 网关请求现在默认包含归属标识头。其他更新涵盖:添加了用于实验功能的 xp 尾部标记;更新了用于 HTML 导出的 Markdown 解析器至 marked 18.0.5 版本;修复了包括 OpenAI 流式响应兼容性、DeepSeek 与 Z.AI 模型思考请求格式、设备码登录自动打开浏览器、编辑器输入历史处理、Windows 平台更新后进程退出、Google 及 Vertex 模型元数据映射、会话选择器在列表为空时的显示状态,以及 Moonshot AI 中国模型元数据与负载支持在内的多个问题。

更新内容 (中文)

新功能

  • 提供商范围的API密钥环境变量 - auth.json API密钥条目现在可以包含 env 覆盖,用于特定提供商的 Cloudflare、Azure OpenAI、Google Vertex、Amazon Bedrock、缓存保留和代理设置,无需更改项目外壳。参阅认证文件
  • 全局HTTP代理设置 - 在全局设置中配置一次 httpProxy,即可将 HTTP_PROXYHTTPS_PROXY 应用于Pi管理的HTTP客户端。参阅网络
  • Vercel AI Gateway 归属 - Vercel AI Gateway 请求现在默认包含 Pi 归属头。参阅API密钥

新增

  • 为 Vercel AI Gateway 模型添加了 Vercel AI Gateway 请求归属头(http-refererx-title)(#5798,由 @rwachtler 提供)。
  • 当启用实验性功能时,添加了 xp 页脚标记。
  • 添加了全局 httpProxy 设置,作为 HTTP_PROXYHTTPS_PROXY 应用于Pi管理的HTTP客户端(#5790)。
  • 添加了 auth.json API密钥 env 值,以便可以将特定于提供商的环境覆盖范围限定于Pi,并传播到继承的提供商配置(#5728)。

变更

  • 将用于HTML会话导出的内置Markdown解析器更新为 marked 18.0.5。

修复

  • 修复了继承的 OpenAI Responses 流式传输,使其能够容忍来自 OpenAI 兼容服务器在工具调用前返回的空消息内容(#5819)。
  • 修复了继承的 OpenCode DeepSeek V4 思考请求,避免同时发送 thinkingreasoning_effort#5818)。
  • 修复了设备代码登录,使其停止自动打开浏览器。
  • 修复了继承的编辑器上移光标处理,使非空草稿在浏览输入历史记录前跳转到行首(#5789,由 @4h9fbZ 提供)。
  • 修复了继承的 Z.AI GLM-5.2 思考请求,以提供者定义的 high/max 努力级别映射发送 reasoning_effort#5770)。
  • 修复了 Windows 上成功的 pi update 操作自然退出而非调用 process.exit(0) 的问题,避免在版本检查网络请求后出现 Node.js/libuv 断言错误(#5805)。
  • 修复了继承的 Google 和 google-vertex Gemini 模型元数据,将 latest 别名映射到当前模型,为 Vertex 添加了 Gemini 3.5 Flash,更正了 Gemini 2.5 Flash Vertex 缓存定价,并移除了已停用的 Vertex 预览模型(#5761)。
  • 修复了会话选择器,使其在当前文件夹和全范围会话列表均为空时保持打开并显示所有会话空状态(#5747)。
  • 修复了继承的 Moonshot AI 中国模型元数据,以包含 Kimi K2.7 Code,并为 Kimi K2.7 Code 模型省略了不支持的思考关闭负载(#5760)。

更新内容 (原始)

New Features

  • Provider-scoped API key environments - auth.json API key entries can now include env overrides for provider-specific Cloudflare, Azure OpenAI, Google Vertex, Amazon Bedrock, cache retention, and proxy settings without changing the project shell. See Auth File.
  • Global HTTP proxy setting - Configure httpProxy once in global settings to apply HTTP_PROXY and HTTPS_PROXY to Pi-managed HTTP clients. See Network.
  • Vercel AI Gateway attribution - Vercel AI Gateway requests now include Pi attribution headers by default. See API Keys.

Added

  • Added Vercel AI Gateway request attribution headers (http-referer and x-title) for Vercel AI Gateway models (#5798 by @rwachtler).
  • Added an xp footer marker when experimental features are enabled.
  • Added a global httpProxy setting that applies as HTTP_PROXY and HTTPS_PROXY for Pi-managed HTTP clients (#5790).
  • Added auth.json API key env values so provider-specific environment overrides can be scoped to Pi and propagated to inherited provider configuration (#5728).

Changed

  • Updated the vendored Markdown parser used by HTML session exports to marked 18.0.5.

Fixed

  • Fixed inherited OpenAI Responses streaming to tolerate null message content from OpenAI-compatible servers before tool calls (#5819).
  • Fixed inherited OpenCode DeepSeek V4 thinking requests to avoid sending both thinking and reasoning_effort (#5818).
  • Fixed device-code login to stop opening the browser automatically.
  • Fixed inherited editor Cursor Up handling so non-empty drafts jump to the start of the line before browsing input history (#5789 by @4h9fbZ).
  • Fixed inherited Z.AI GLM-5.2 thinking requests to send reasoning_effort with the provider’s high/max effort mapping (#5770).
  • Fixed successful pi update on Windows to exit naturally instead of calling process.exit(0), avoiding a Node.js/libuv assertion after version-check network requests (#5805).
  • Fixed inherited Google and google-vertex Gemini model metadata to map latest aliases to the current models, add Gemini 3.5 Flash for Vertex, correct Gemini 2.5 Flash Vertex cache pricing, and remove shut-down Vertex preview models (#5761).
  • Fixed the session selector to stay open and show the all-sessions empty state when both current-folder and all-scope session lists are empty (#5747).
  • Fixed inherited Moonshot AI China model metadata to include Kimi K2.7 Code, and omitted unsupported thinking-off payloads for Kimi K2.7 Code models (#5760).

下载链接