发布日期: 2026-06-20
版本号: v0.79.9

新版本主要带来了两项新功能:一是增强了兼容OpenAI的自定义提供商对思考模板的支持,允许如DeepSeek等模型使用原生思考控制;二是改进了GLM-5.2提供商的相关配置和功能。此外,本次更新修复了多项问题,包括修复了元数据配置、会话切换时的扩展模块管理、深层会话构建的性能瓶颈、Markdown流式渲染中的代码块闪烁、模糊编辑匹配逻辑、旧版WSL的bash命令传递,以及模型选择器对GitHub Copilot模型和搜索排名的处理。

更新内容 (中文)

新功能

  • 聊天模板思维兼容性 - OpenAI兼容的自定义提供商可将Pi思维级别映射至chat_template_kwargs,使vLLM/Hugging Face聊天模板模型(如DeepSeek)能够使用提供商原生思维控制功能。详见自定义提供商API类型OpenAI兼容性
  • GLM-5.2提供商增强 - GLM-5.2现已修正Fireworks OpenAI兼容路由并支持OpenRouter的xhigh思维模式,改善了GLM-5.2用户的/model行为与高难度推理能力。详见模型选项

新增

  • 为使用chat_template_kwargs的OpenAI兼容提供商(例如vLLM后的DeepSeek模型)添加了继承式可配置chat-template思维支持(#5673)。

修复

  • 修复Fireworks GLM-5.2继承元数据,使其使用支持reasoning_effort的OpenAI兼容聊天补全端点(#5923)。
  • 修复同目录会话切换时,保留新扩展实例与生命周期事件的同时复用已导入的扩展模块(#5905)。
  • 修复深层会话分支构建上下文或分支路径时出现的二次时间复杂度问题(#5909)。
  • 修复OpenRouter GLM-5.2继承元数据,以暴露xhigh推理级别并发送OpenRouter原生xhigh努力度(#5770)。
  • 修复继承的Markdown流式代码围栏渲染,使部分闭合围栏在内容流式传输时不再导致代码块收缩或闪烁(#5846@xl0 提交)。
  • 修复模糊edit匹配逻辑,通过规范化内容重写整个文件前保留未修改的行块(#5899)。
  • 修复通过传统WSL bash.exe执行的bash命令,使其通过stdin传递脚本以便在目标bash中展开shell变量(#5893)。
  • 修复/model命令以隐藏对当前认证账户不可用的GitHub Copilot模型(#5897)。
  • 修复/model选择器搜索,使精确提供商前缀匹配优先于代理提供商模型ID匹配(#5892)。

更新内容 (原始)

New Features

  • Chat-template thinking compatibility - OpenAI-compatible custom providers can map Pi thinking levels into chat_template_kwargs, enabling vLLM/Hugging Face chat-template models such as DeepSeek to use provider-native thinking controls. See Custom Provider API Types and OpenAI Compatibility.
  • GLM-5.2 provider improvements - GLM-5.2 now has corrected Fireworks OpenAI-compatible routing and OpenRouter xhigh thinking support, improving /model behavior and high-effort reasoning for GLM-5.2 users. See Model Options.

Added

  • Added inherited configurable chat-template thinking support for OpenAI-compatible providers that use chat_template_kwargs, such as DeepSeek models behind vLLM (#5673).

Fixed

  • Fixed inherited Fireworks GLM-5.2 metadata to use the OpenAI-compatible Chat Completions endpoint with reasoning_effort support (#5923).
  • Fixed same-directory session switches to reuse imported extension modules while preserving fresh extension instances and lifecycle events (#5905).
  • Fixed deep session branches taking quadratic time to build context or branch paths (#5909).
  • Fixed inherited OpenRouter GLM-5.2 metadata to expose xhigh reasoning and send OpenRouter’s native xhigh effort (#5770).
  • Fixed inherited Markdown streaming code fence rendering so partial closing fences no longer make code blocks shrink or flicker while content streams (#5846 by @xl0).
  • Fixed fuzzy edit matches to preserve untouched line blocks instead of rewriting the whole file through normalized content (#5899).
  • Fixed bash commands through legacy WSL bash.exe to pass scripts over stdin so shell variables expand in the target bash (#5893).
  • Fixed /model to hide GitHub Copilot models that are unavailable to the authenticated account (#5897).
  • Fixed /model selector search to rank exact provider-prefixed matches before proxy-provider model ID matches (#5892).

下载链接