跳到主内容
@wquguru
精选85pi coding agent(GitHub Releases)AI 编程与模型

Pi coding agent v1.3.0:Kimi provider 变更

v1.3.0

原文
发到 X
推荐理由

Kimi provider 迁移涉及 API 端点与参数格式变更,使用 Kimi Code 的用户需检查并修改 models.json 配置,否则将无法连接。建议尽快升级并核对配置。

New Features

新功能

  • Choose where /share uploads: sessionShareDestination selects auto, gist, or radius. See Sessions and context and Export or share a session.
  • Cache-preserving thinking level changes on OpenAI GPT-6: changing the thinking level mid-session with an API key keeps the prompt cache.
  • Kimi Code over Chat Completions: tools added mid-conversation no longer invalidate the prompt cache. models.json base URL overrides must now include /v1. See Providers.
  • Clean model switching: thinking from a previous model is dropped instead of being shown to the new model as text.
  • Resumed sessions keep their active tools: --tools +name/-name applies on top of them. See Tools.
  • 选择 /share 上传位置:sessionShareDestination 选项包括 auto、gist 或 radius。请参阅 Sessions and context 和 Export or share a session。
  • OpenAI GPT-6 上保留缓存的思维层级更改:使用 API 密钥在会话中途更改思维层级可保留提示词缓存。
  • Kimi Code 优于 Chat Completions:对话中途添加的工具不再使提示词缓存失效。models.json base URL 覆盖现在必须包含 /v1。请参阅 Providers。
  • 干净的模型切换:来自前一个模型的思维内容会被丢弃,而不是作为文本显示给新模型。
  • 恢复的会话保留其活动工具:--tools +name/-name 在其基础上应用。请参阅 Tools。

Added

新增

  • Changing the thinking level mid-session on OpenAI GPT-6 models (API key) now keeps the prompt cache (#10853)
  • Added the sessionShareDestination setting to choose automatic, GitHub gist, or Radius uploads for /share (#10870 by @vegarsti)
  • 在 OpenAI GPT-6 模型(API 密钥)上中途更改思维层级现在会保留提示词缓存 (#10853)
  • 新增 sessionShareDestination 设置,用于为 /share 选择自动、GitHub gist 或 Radius 上传 (#10870 by @vegarsti)

Changed

更改

  • Changed the kimi-coding provider to use OpenAI Chat Completions at https://api.kimi.com/coding/v1, the protocol used by the official Kimi Code client. K3, K3-256K, and Kimi For Coding now accept tools added mid-conversation without invalidating the prompt cache. models.json overrides of the kimi-coding base URL must now include /v1 (#10720)
  • Changed model switching to drop thinking blocks from earlier assistant messages produced by a different model, instead of sending them as plain text. The new model previously saw the old model's reasoning as part of its replies and could start writing its own reasoning into the visible answer (#10995)
  • 将 kimi-coding 提供商更改为使用 https://api.kimi.com/coding/v1 上的 OpenAI Chat Completions,这是官方 Kimi Code 客户端使用的协议。K3、K3-256K 和 Kimi For Coding 现在接受对话中途添加的工具而不会使提示词缓存失效。kimi-coding base URL 的 models.json 覆盖现在必须包含 /v1 (#10720)
  • 更改模型切换逻辑,使其丢弃由不同模型生成的早期助手消息中的思维块,而不是将其作为纯文本发送。新模型之前会将旧模型的推理视为其回复的一部分,并可能开始将自身的推理写入可见答案中 (#10995)

Fixed

修复

  • Pinned internal Pi dependencies to exact release versions to prevent fresh installs from mixing incompatible packages (#10865)
  • Fixed resumed sessions dropping tools activated during the session. Resume now restores the session's active tools, with --tools +name/-name entries applied to them, unless --tools with tool names, --no-tools, or --no-builtin-tools selects tools explicitly (#10785)
  • Fixed stopping a codemode script or reaching its deadline waiting for a non-interruptible built-in to return on Bun (#10748)
  • Fixed repeated codemode timeouts or aborts accumulating surviving workers; admission now limits live workers to two across sessions, counting cancelled workers until actual exit (#10748)
  • Fixed --model choosing a provider by catalog order when several providers offer the match; Pi now prefers the provider with credentials and otherwise reports the ambiguity. --models and enabledModels add a model for each provider that offers it and warn about the ambiguity (#10160)
  • Fixed read line-range labels for numeric-string or null arguments in the TUI, session tree, HTML exports, and examples (#9887)
  • Fixed the Nix flake build failing when a provider switched APIs: the model catalog pin is now refreshed from the newest published catalog when its model API groups differ, and releases pin the newest catalog and build with it before tagging (#10985)
  • Fixed the Nix package putting its Node.js first on PATH, which made bash tool shells use Pi's Node instead of the user's node/npm. Pi's Node is now only a fallback (#10519)
  • Fixed prompt templates dropping empty quoted arguments ("" or ''), which shifted later positional arguments and prevented positional defaults from applying (#10867)
  • Fixed the Nix package build failing in its install check because it still expected chord and esbuild, which Pi no longer depends on
  • Fixed tool-call argument parsing dropping fields when a string contains an invalid \u escape such as \usepackage (#10868)
  • Fixed Anthropic and Bedrock Claude requests failing with a 400 when an error tool result contains images; the images are now sent after the tool results of the turn, so the model still sees them (#10794)
  • Fixed OpenCode Go Gemini models failing with a 404 by moving OpenCode Zen and OpenCode Go to the opencode.ai/inference endpoints, and added Google Generative AI support to the OpenCode Go provider
  • Fixed OpenCode Go MiniMax M2.7 failing with "Model does not support this protocol" by using the Anthropic Messages API
  • Fixed automatic retry not triggering for gateway Unable to forward upstream stream errors (#10920)
  • Fixed automatic retry not triggering for The service is temporarily unavailable errors, which also made compaction fail on the first attempt (#10965)
  • Fixed OpenAI-compatible responses showing thinking after the answer when a proxy such as LiteLLM sends reasoning and content in the same stream chunk (#10926)
  • Fixed Gemini 4 Argon requests on Google Vertex failing with "Thinking budget is not supported", and its thinking level being ignored on the Gemini API (#10890)
  • Fixed Xiaomi MiMo models failing with a 400 at the minimal thinking level; they now expose only the off and high levels (#10818)
  • Fixed openai-codex/gpt-6.1-sol using a 272K context window instead of the 500K window Codex now provides (#10840)
  • Fixed tool calls whose final arguments are malformed JSON silently running with only the fields parsed before the error; they now fail validation and show the model the raw arguments it sent (#10897)
  • Fixed Claude Haiku 5.5 and Claude Opus 5 not supporting the off thinking level (#10753)
  • Fixed done() of an extension's ctx.ui.custom({ overlay: true }) closing the topmost overlay instead of its own, which left the finished overlay on screen and another extension's dialog unresolved (#10648, #10999 by @masonc15)
  • 将内部 Pi 依赖项固定到确切的发布版本,以防止全新安装时混合不兼容的包 (#10865)
  • 修复恢复的会话丢失会话期间激活的工具的问题。现在恢复时会话的活动工具会被还原,除非 --tools 带有工具名称、--no-tools 或 --no-builtin-tools 显式选择工具,否则 --tools +name/-name 条目会应用于这些工具 (#10785)
  • 修复在 Bun 上停止 codemode 脚本或等待不可中断的内置函数返回时达到截止时间的问题 (#10748)
  • 修复重复的 codemode 超时或中止导致存活工作进程累积的问题;admission 现在限制跨会话的活跃工作进程最多为两个,计算已取消的工作进程直到实际退出 (#10748)
  • 修复了当多个提供商提供匹配项时,--model 按目录顺序选择提供商的问题;Pi 现在优先选择拥有凭据的提供商,否则报告歧义。--models 和 enabledModels 为每个提供该模型的提供商添加一个模型,并警告存在歧义 (#10160)
  • 修复了 TUI、会话树、HTML 导出和示例中针对数字字符串或 null 参数的读取行范围标签问题 (#9887)
  • 修复了当提供商切换 API 时 Nix flake 构建失败的问题:当模型 API 组不同时,模型目录固定点会从最新发布的目录刷新,且发布版本在打标签前会固定最新目录并使用其进行构建 (#10985)
  • 修复了 Nix 包将 Node.js 置于 PATH 首位的问题,这导致 bash 工具 shell 使用 Pi 的 Node 而非用户的 node/npm。Pi 的 Node 现在仅作为回退选项 (#10519)
  • 修复了提示模板丢弃空引号参数("" 或 '')的问题,这会导致后续位置参数移位并阻止应用位置默认值 (#10867)
  • 修复了 Nix 包构建在安装检查中失败的问题,因为它仍期望存在 chord 和 esbuild,而 Pi 已不再依赖它们
  • 修复了工具调用参数解析在字符串包含无效 \u 转义序列(如 \usepackage)时丢弃字段的问题 (#10868)
  • 修复了 Anthropic 和 Bedrock Claude 请求在错误工具结果包含图像时因 400 错误而失败的问题;现在图像会在该轮次的工具结果之后发送,以便模型仍能看到它们 (#10794)
  • 通过将 OpenCode Zen 和 OpenCode Go 移至 opencode.ai/inference 端点,修复了 OpenCode Go Gemini 模型出现 404 错误的问题,并为 OpenCode Go 提供商添加了 Google Generative AI 支持
  • 通过使用 Anthropic Messages API,修复了 OpenCode Go MiniMax M2.7 因“模型不支持此协议”而失败的问题
  • 修复了网关无法转发上游流错误未触发自动重试的问题 (#10920)
  • 修复了“服务暂时不可用”错误未触发自动重试的问题,这也导致压缩在首次尝试时失败 (#10965)
  • 修复了当 LiteLLM 等代理在同一流块中同时发送推理和内容时,OpenAI 兼容响应在答案后显示思考内容的问题 (#10926)
  • 修复了在 Google Vertex 上发起 Gemini 4 Argon 请求时因“不支持思考预算”而失败的问题,以及其在 Gemini API 上忽略思考级别的问题 (#10890)
  • 修复了 Xiaomi MiMo 模型在最低思考级别下因 400 错误而失败的问题;它们现在仅暴露关闭和高两个级别 (#10818)
  • 修复了 openai-codex/gpt-6.1-sol 使用 272K 上下文窗口而非 Codex 现在提供的 500K 窗口的问题 (#10840)
  • 修复了工具调用中最终参数为格式错误的 JSON 时静默运行且仅解析错误前字段的问题;现在它们会验证失败,并向模型展示其发送的原始参数 (#10897)
  • 修复了 Claude Haiku 5.5 和 Claude Opus 5 不支持关闭思考层级的问题 (#10753)
  • 修复了扩展的 ctx.ui.custom({ overlay: true }) 的 done() 方法关闭最顶层覆盖层而非自身覆盖层的问题,这会导致已完成的覆盖层留在屏幕上,且另一个扩展的对话框未得到解决 (#10648, #10999 by @masonc15)

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件