fix(ai,coding-agent): remove deprecated Xiaomi models

closes #8187
This commit is contained in:
Vegard Stikbakke 2026-08-17 14:43:48 +02:00
parent 10acee6045
commit 0e4d495414
4 changed files with 15 additions and 11 deletions

View file

@ -11,6 +11,7 @@
- Fixed Amazon Bedrock `after_provider_response`/`onResponse` to forward the raw response headers instead of only the synthesized request id header ([#8234](https://github.com/earendil-works/pi/issues/8234)).
- Fixed Kimi OpenAI-compatible usage reporting so top-level `cached_tokens` count as cache reads instead of normal input tokens ([#8075](https://github.com/earendil-works/pi/issues/8075)).
- Fixed Google Generative AI and Vertex AI custom models ignoring `thinkingLevelMap`, which dropped extended thinking controls ([#8135](https://github.com/earendil-works/pi/issues/8135)).
- Fixed Xiaomi model catalog generation retaining shut-down MiMo V2 model names after models.dev marked them deprecated ([#8187](https://github.com/earendil-works/pi/issues/8187)).
## [0.84.2] - 2026-08-14

View file

@ -2159,6 +2159,7 @@ async function loadModelsDevData(): Promise<Model<any>[]> {
for (const [modelId, model] of Object.entries(providerModels)) {
const m = model as ModelsDevModel;
if (m.tool_call !== true) continue;
if (m.status === "deprecated") continue;
models.push({
id: modelId,

View file

@ -1,17 +1,18 @@
import { describe, expect, it } from "vitest";
import { getModel, getModels } from "../src/compat.ts";
import { getModels } from "../src/compat.ts";
const XIAOMI_PROVIDERS = ["xiaomi", "xiaomi-token-plan-cn", "xiaomi-token-plan-ams", "xiaomi-token-plan-sgp"] as const;
const DEPRECATED_MODEL_IDS = ["mimo-v2-flash", "mimo-v2-omni", "mimo-v2-pro"] as const;
const REPLACEMENT_MODEL_IDS = ["mimo-v2.5", "mimo-v2.5-pro"] as const;
describe("Xiaomi MiMo models", () => {
it.each(["mimo-v2-flash", "mimo-v2-omni"] as const)("keeps %s on the API billing provider", (modelId) => {
expect(getModel("xiaomi", modelId)).toBeDefined();
it.each(XIAOMI_PROVIDERS)("omits deprecated models from %s", (provider) => {
const modelIds = getModels(provider).map((model) => model.id);
for (const modelId of DEPRECATED_MODEL_IDS) expect(modelIds).not.toContain(modelId);
});
it.each(["xiaomi-token-plan-cn", "xiaomi-token-plan-ams", "xiaomi-token-plan-sgp"] as const)(
"omits API-billing-only models from %s",
(provider) => {
const modelIds = getModels(provider).map((model) => model.id);
expect(modelIds).not.toContain("mimo-v2-flash");
expect(modelIds).not.toContain("mimo-v2-omni");
},
);
it.each(XIAOMI_PROVIDERS)("keeps replacement models on %s", (provider) => {
const modelIds = getModels(provider).map((model) => model.id);
for (const modelId of REPLACEMENT_MODEL_IDS) expect(modelIds).toContain(modelId);
});
});

View file

@ -13,6 +13,7 @@
- Fixed duplicate fullscreen right-click paste in VS Code-based terminals on Windows ([#8186](https://github.com/earendil-works/pi/issues/8186)).
- Fixed llama.cpp login guidance to direct users to `/llama` before `/model` when no local models are loaded ([#8203](https://github.com/earendil-works/pi/issues/8203)).
- Fixed hung pi.dev model catalog requests consuming the entire refresh deadline without retrying ([#8198](https://github.com/earendil-works/pi/issues/8198)).
- Fixed inherited Xiaomi model catalogs listing shut-down MiMo V2 models in `/model` and `--list-models` ([#8187](https://github.com/earendil-works/pi/issues/8187)).
## [0.84.2] - 2026-08-14