From f46d1f4d66412f6f9fff68024d5af286b2871527 Mon Sep 17 00:00:00 2001 From: Kelvin Quee Date: Mon, 6 Jul 2026 09:38:39 +0000 Subject: [PATCH] fix(xiaomi-token-plan): remove mimo-v2-omni (not served by token-plan endpoints) The token-plan endpoints do not serve mimo-v2-omni. Requests return HTTP 400 "Not supported model mimo-v2-omni". The model is pay-as-you-go only and stays under providers/xiaomi/. Also drop the stale "V2 Omni" mention from the three token-plan provider.toml comments. Validated with bun validate. --- .../xiaomi-token-plan-ams/models/mimo-v2-omni.toml | 1 - providers/xiaomi-token-plan-ams/provider.toml | 2 +- .../xiaomi-token-plan-cn/models/mimo-v2-omni.toml | 11 ----------- providers/xiaomi-token-plan-cn/provider.toml | 2 +- .../xiaomi-token-plan-sgp/models/mimo-v2-omni.toml | 1 - providers/xiaomi-token-plan-sgp/provider.toml | 2 +- 6 files changed, 3 insertions(+), 16 deletions(-) delete mode 120000 providers/xiaomi-token-plan-ams/models/mimo-v2-omni.toml delete mode 100644 providers/xiaomi-token-plan-cn/models/mimo-v2-omni.toml delete mode 120000 providers/xiaomi-token-plan-sgp/models/mimo-v2-omni.toml diff --git a/providers/xiaomi-token-plan-ams/models/mimo-v2-omni.toml b/providers/xiaomi-token-plan-ams/models/mimo-v2-omni.toml deleted file mode 120000 index bbe0ee460a..0000000000 --- a/providers/xiaomi-token-plan-ams/models/mimo-v2-omni.toml +++ /dev/null @@ -1 +0,0 @@ -../../xiaomi-token-plan-cn/models/mimo-v2-omni.toml \ No newline at end of file diff --git a/providers/xiaomi-token-plan-ams/provider.toml b/providers/xiaomi-token-plan-ams/provider.toml index 76d5198e07..758e9e3d04 100644 --- a/providers/xiaomi-token-plan-ams/provider.toml +++ b/providers/xiaomi-token-plan-ams/provider.toml @@ -2,7 +2,7 @@ name = "Xiaomi Token Plan (Europe)" # Raw endpoints are POST https://token-plan-ams.xiaomimimo.com/v1/chat/completions # and POST https://token-plan-ams.xiaomimimo.com/anthropic/v1/messages. # Both protocols use thinking.type="enabled"|"disabled"; Flash defaults -# disabled, while V2.5 Pro, V2.5, V2 Pro, and V2 Omni default enabled. +# disabled, while V2.5 Pro, V2.5, and V2 Pro default enabled. # https://platform.xiaomimimo.com/static/docs/price/tokenplan/quick-access.md (accessed 2026-06-25) # https://platform.xiaomimimo.com/static/docs/api/chat/openai-api.md (accessed 2026-06-25) env = ["XIAOMI_API_KEY"] diff --git a/providers/xiaomi-token-plan-cn/models/mimo-v2-omni.toml b/providers/xiaomi-token-plan-cn/models/mimo-v2-omni.toml deleted file mode 100644 index fdf8e65dd8..0000000000 --- a/providers/xiaomi-token-plan-cn/models/mimo-v2-omni.toml +++ /dev/null @@ -1,11 +0,0 @@ -base_model = "xiaomi/mimo-v2-omni" -status = "deprecated" -reasoning_options = [{ type = "toggle" }] - -[interleaved] -field = "reasoning_content" - -[cost] -input = 0 -output = 0 -cache_read = 0 diff --git a/providers/xiaomi-token-plan-cn/provider.toml b/providers/xiaomi-token-plan-cn/provider.toml index db1a2b484e..d736f0f522 100644 --- a/providers/xiaomi-token-plan-cn/provider.toml +++ b/providers/xiaomi-token-plan-cn/provider.toml @@ -2,7 +2,7 @@ name = "Xiaomi Token Plan (China)" # Raw endpoints are POST https://token-plan-cn.xiaomimimo.com/v1/chat/completions # and POST https://token-plan-cn.xiaomimimo.com/anthropic/v1/messages. # Both protocols use thinking.type="enabled"|"disabled"; Flash defaults -# disabled, while V2.5 Pro, V2.5, V2 Pro, and V2 Omni default enabled. +# disabled, while V2.5 Pro, V2.5, and V2 Pro default enabled. # https://platform.xiaomimimo.com/static/docs/price/tokenplan/quick-access.md (accessed 2026-06-25) # https://platform.xiaomimimo.com/static/docs/api/chat/openai-api.md (accessed 2026-06-25) env = ["XIAOMI_API_KEY"] diff --git a/providers/xiaomi-token-plan-sgp/models/mimo-v2-omni.toml b/providers/xiaomi-token-plan-sgp/models/mimo-v2-omni.toml deleted file mode 120000 index bbe0ee460a..0000000000 --- a/providers/xiaomi-token-plan-sgp/models/mimo-v2-omni.toml +++ /dev/null @@ -1 +0,0 @@ -../../xiaomi-token-plan-cn/models/mimo-v2-omni.toml \ No newline at end of file diff --git a/providers/xiaomi-token-plan-sgp/provider.toml b/providers/xiaomi-token-plan-sgp/provider.toml index bfffbfed20..b681bb2c60 100644 --- a/providers/xiaomi-token-plan-sgp/provider.toml +++ b/providers/xiaomi-token-plan-sgp/provider.toml @@ -2,7 +2,7 @@ name = "Xiaomi Token Plan (Singapore)" # Raw endpoints are POST https://token-plan-sgp.xiaomimimo.com/v1/chat/completions # and POST https://token-plan-sgp.xiaomimimo.com/anthropic/v1/messages. # Both protocols use thinking.type="enabled"|"disabled"; Flash defaults -# disabled, while V2.5 Pro, V2.5, V2 Pro, and V2 Omni default enabled. +# disabled, while V2.5 Pro, V2.5, and V2 Pro default enabled. # https://platform.xiaomimimo.com/static/docs/price/tokenplan/quick-access.md (accessed 2026-06-25) # https://platform.xiaomimimo.com/static/docs/api/chat/openai-api.md (accessed 2026-06-25) env = ["XIAOMI_API_KEY"]