Pi 1.7.0 switches default model after Cloudflare deprecates Kimi K2.6 and K2.7 Code
Pi 1.7.0 makes glm-5.3 the default model for Cloudflare providers after Cloudflare deprecated two Workers AI Kimi models.
Pi 1.7.0 changes the default model for the cloudflare-workers-ai and cloudflare-ai-gateway providers to @cf/zai-org/glm-5.3. The reason is that Cloudflare has deprecated two Workers AI Kimi models, K2.6 and K2.7 Code. The change is the first entry under Changed in the v1.7.0 release notes on GitHub. It is one of several model swaps in the release, all of which follow from models that providers have retired.
A default model is the one pi selects when a user has not picked a model for a provider. People who configured the Cloudflare providers and never set a model by hand will now get glm-5.3 instead of a Kimi model the provider no longer serves. The notes do not say how existing users are affected, or whether a user who had already chosen a Kimi model is moved over.
The same pattern shows up in two other providers. Pi changed the ant-ling default model from Ring-2.6-1T, which has been retired, to Ling-3.1-flash. It also replaced qwen4-max-preview with qwen4-max on Qwen Token Plan Individual. The ant-ling change comes with a compatibility step. Existing models.json files can keep the setting thinkingFormat: "ant-ling", which pi now treats as a deprecated alias for "deepseek". Anyone who has that value in a config file can keep it, and the notes call it deprecated.
Most of the rest of the release has nothing to do with model defaults. One addition is terminal session resume. In terminals that set the OSC7577_TOKEN variable, interactive mode reports a command in the form pi --session <id> for the current session, so the terminal can reopen it after a restart. Pi removes that token from the environment of every process it starts. The notes add that the resume command now repeats the flags pi was started with, such as --tools, --no-extensions and --system-prompt. The reason is stated directly: without this, a terminal could resume a session with other tools or instructions, and possibly more access, than the original run had. The notes say a terminal rule must trust each flag combination, which means a terminal that resumes programs has to be configured to accept these longer commands. A new --agent-dir option, the command-line form of PI_CODING_AGENT_DIR, addresses a separate problem. Without it, a session started with PI_CODING_AGENT_DIR came back with the default directory's settings and auth, because the terminal resumed the command without the environment pi had been started in. It is intended for setups that keep a separate pi profile per project.
The release also lists a breaking change. Pi removed telemetry reporting for new installs and updates. That covered the /api/report-install endpoint, the enableInstallTelemetry setting, and the PI_TELEMETRY variable. Anyone who scripts against the removed SettingsManager methods, getEnableInstallTelemetry() and setEnableInstallTelemetry(), will need to change that code.
Several fixes concern the model layer. Pi now reports an invalid models.json in print, JSON and RPC modes. Before, a typo such as "contextWindow": "32000" appeared only as a Model not found or No API key found error. The release notes say createAgentSessionServices() now returns the problem as a warning in diagnostics, and interactive mode shows it as a warning rather than an error. Another fix addresses Amazon Bedrock Kimi K3.1 and GLM 5.3, which had been ignoring the selected thinking level. The notes add that Kimi K3 and K3.1 no longer send earlier reasoning back to Bedrock. The notes say that change could otherwise make later turns fail.
What changed
The default model for cloudflare-workers-ai and cloudflare-ai-gateway changes from Kimi K2.6 and K2.7 Code, which Cloudflare deprecated, to @cf/zai-org/glm-5.3.
Type: Breaking change · Applies to: cloudflare-workers-ai, cloudflare-ai-gateway, @cf/zai-org/glm-5.3, Kimi K2.6, K2.7 Code
Why it matters
Provider model retirements can change default behaviour in agent tools without warning, so configurations pinned to retired models may stop working.
What you can do
Check configs for retired model IDs on Cloudflare, Ant Ling and Qwen and move them to the replacement models.
On the model leaderboard
Kimi K2.6 is number 69 of 263 models on the Epoch Capabilities Index, with a score of 151.7.
GLM-5.3 is number 38 of 263 models on the Epoch Capabilities Index, with a score of 157.0.
Source: Epoch AI, “Epoch Capabilities Index”, CC BY 4.0, fetched · The whole leaderboard
Original source
Where we saw it
Pi releases
AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works